Paypal Adaptive Payments PHP Soap SDK Undefined Definitions - php

I'm trying to integrate an adaptive payments system to my codeigniter project on my centos server. SOAP is installed on my server (I executed "yum install php-soap" via ssh and restarted the server already), and I'm getting errors like this when I try to run:
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant XML_SERIALIZER_OPTION_INDENT - assumed 'XML_SERIALIZER_OPTION_INDENT'
Filename: SOAPEncoder/SOAPEncoder.php
Line Number: 41
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant XML_SERIALIZER_OPTION_INDENT - assumed 'XML_SERIALIZER_OPTION_INDENT'
Filename: SOAPEncoder/SOAPEncoder.php
Line Number: 41
What am I missing, how can I solve this ?
Thanks,

Perhaps you need to install the XML_Serializer PEAR package: http://pear.php.net/package/XML_Serializer/
pear install XML_Serializer

Related

Knowband marketplace is not working properly on my Prestashop Store

I have installed knowband marketplace module on prestashop 1.7 but its not working properly. I am unable to add seller from front as well as back office. When I click on any module button I am getting below mentioned error :-
Undefined Index :- id_kb_mp_seller
Logs :-
WARNING
12:10:26
translation Translation not found.
CRITICAL
12:10:26
php Uncaught Notice: Undefined index: id_kb_mp_seller
INFO
12:10:26
php User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector".
CRITICAL
12:10:26
request Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Notice: Undefined index: id_kb_mp_seller" at /home/u785114660/domains/onebazaar.in/public_html/src/Adapter/Routing/LegacyHelperLinkBuilder.php line 74
WARNING
12:10:26
translation Translation not found.
DEBUG
12:10:26
php Warning: filemtime(): stat failed for /home/u785114660/domains/onebazaar.in/public_html/modules/kbmarketplace/views/js/admin/kb-marketplace-customer.js
INFO
12:10:26
php User Deprecated: AdminMarketing is a deprecated tab since version 1.7.0 and "Default" will be removed in 1.7.1.. Upgrade module using the docs: http://build.prestashop.com/news/how-we-reorganized-main-menu-prestashop-1.7/.
DEBUG
12:10:26
php Warning: filemtime(): stat failed for /home/u785114660/domains/onebazaar.in/public_html/1fknrvtft56ugkia/themes/default/css/theme.css
Please help me out to resolve this issue.
Thanks.
It seems that the module uses some deprecated methods.
The main reason for this may be that the version of the module is not compatible with the PrestaShop version.
Ask the module developers for the new version of the module, or try the module with an older version of PrestaShop.

Aauth codeigniter library, undefined constant PASSWORD_DEFAULT

I have a project using the library aauth CodeIgniter. when I run on windows localhost it running as well. when I move my project to the centos server virtualbox I just installed, I found the following error:
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant PASSWORD_DEFAULT - assumed
'PASSWORD_DEFAULT'
Filename: config/aauth.php
Line Number: 136
any help would be great. Thank you.

Getting error when trying to install POS on Localhost : Fatal error: Can't use method return value in write context

I am trying to install opensourcepos from https://github.com/jekkos/opensourcepos
But I am getting this error:
Fatal error: Can't use method return value in write context in D:\Xampp\htdocs\opensourcepos\application\helpers\locale_helper.php on line 67
A PHP Error was encountered
Severity: Compile Error
Message: Can't use method return value in write context
Filename: helpers/locale_helper.php
Line Number: 67
Backtrace:
I followed instructions, this is a brand new install, I'm at a loss...
I'm on WIndows 7, using Localhost with Xampp
The line 67 is question is this one:
if (empty($config->item('thousands_separator')))
When I comment it out, the site loads, but it doesn't work
check readme txt
You are getting following error Message: Can't use method return value in write context saying that you are probably using PHP7 which is not completely supported yet. Check your hosting configuration to verify whether you have a supported PHP version installed

Connecting to Oracle in Codeigniter (undefined constant OCI_COMMIT_ON_SUCCESS)

im kind of a n00b to Oracle db's, but when i set my dbdriver in codeigniter to oci8, i get the following error, which is weird, providing the extension is enabled in the php.ini file.
I get the following error.
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant OCI_COMMIT_ON_SUCCESS - assumed 'OCI_COMMIT_ON_SUCCESS'
Filename: database/DB.php
Line Number: 82
You should install/enable the oci8 extension.
http://www.php.net/manual/en/book.oci8.php

Strange error trying to execute "php codecept.phar run > result.txt"

I have installed Codeception following the guide on their website. Everything went okay, so I created my first basic test.
<?php
$I = new WebGuy($scenario);
$I->wantTo('ensure that frontpage works');
$I->amOnPage('/');
$I->see('Homepage');
Trying to execute this and it gave Stack trace errors so I dumped them in result.txt page.
Codeception PHP Testing Framework v1.6.2
Powered by PHPUnit 3.7.19 by Sebastian Bergmann.
Notice: Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER' in phar://C:/wamp/www/dugun/codecept.phar/src/Codeception/Configuration.php on line 175
Notice: Use of undefined constant CURLOPT_CERTINFO - assumed 'CURLOPT_CERTINFO' in phar://C:/wamp/www/dugun/codecept.phar/src/Codeception/Configuration.php on line 175
Notice: Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER' in phar://C:/wamp/www/dugun/codecept.phar/src/Codeception/Module/PhpBrowser.php on line 78
Fatal error: Call to undefined function Guzzle\Http\Curl\curl_version() in phar://C:/wamp/www/dugun/codecept.phar/vendor/guzzle/guzzle/src/Guzzle/Http/Curl/CurlVersion.php on line 47
Using WAMP on Windows 7. PHP ver 5.4.3. Apache ver 2.4.2. CURL is enabled in settings. Tried restarting several times, no luck.
Anyone knows how to solve this issue, what may be wrong?
Update
The problem was related to curl.dll. Downloading a fresh one from this topic (PHP cURL not working - WAMP on Windows 7 64 bit) solved the issue.
Based on the errors I'd guess that CURL is missing even though it's enabled, try running a phpinfo() to see if the extension is running.
From the PHP site:
"Note: Note to Win32 Users
In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH. You don't need libcurl.dll from the cURL site."
http://www.php.net/manual/en/curl.installation.php

Categories