PayPal REST API issue in PPModel.php on line 51

空扰寡人 提交于 2019-12-11 03:12:01

问题


Whenever I try to create payment on paypal using create.php, it gives me this error

Fatal error: Class 'string' not found in public_html/demos/demo_files/integrate-paypal-rest-api-php-mysql/vendor/paypal/sdk-core-php/lib/PayPal/Common/PPModel.php on line 51

I am not able to find any help regarding it anywhere. PPModel.php is part of PHP SDK by PayPal. PPModel.php can be found here The script works fine on localhost, but on webhosting server it gives following Fatal error.

Update I was able to fix the issue by disabling eaccelerator for php. Caching plugins such as eaccelerator, opcache, APC might create problem for others also

来源:https://stackoverflow.com/questions/24220031/paypal-rest-api-issue-in-ppmodel-php-on-line-51

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!