Paypal Helper not Loading after upgrade, blank page - magento

I upgraded Magento from v 1.4.x to 1.9.2.0. All seems to work OK except the Paypal module.
If I go to System -> Configuration in Admin, or the Checkout page on the front end, I get a blank screen.
The error_log shows this error when I go to System -> Configuration:
PHP Fatal error: Call to undefined method Mage_Paypal_Helper_Data::getConfigurationCountryCode() in /home/mysite/public_html/includes/src/Mage_Paypal_Model_Observer.php on line 130, referer: http://www.mysite.co.uk/index.php/site_admin/dashboard/index/key/7ec25272dd6e12345667015d73b305/
The error_log shows this when I go to the checkout on the front end:
PHP Fatal error: Undefined class constant 'MERCHANT_COUNTRY_CONFIG_PATH' in /home/mysite/public_html/includes/src/Mage_Paypal_Model_Config.php on line 769, referer: http://www.mysite.co.uk/checkout/onepage/
All the files look to be present... specifically the Helper/Data.php file with the class Mage_Paypal_Helper_Data and getConfigurationCountryCode() method. So it seems its just not loading this helper class.
Does anyone have an idea why it would not load?
Thanks

I have solved the issue. There was a Paypal folder with same Mage_Paypal_Helper_Data class in the local/Mage folder, but without the necessary methods. This class was therefore being loaded. The class must have been left over in 1.4.x in which it somehow worked. Removing this folder results in the core/Mage/Paypal class working.

This solved my problem too, though I was getting a different error after upgrading to 1.9.2.2.
When I clicked to checkout with paypal express, it would bring up an error page:
Fatal error: Call to undefined method Mage_Paypal_Model_Express_Checkout::setIsBml() in public_html/app/code/core/Mage/Paypal/Controller/Express/Abstract.php on line 98.
After banging my head against a wall for some time, I finally checked the local/mage folder and discovered a checkout override for paypal that had been done by a previous developer 18 months ago. Makes sense that the error came up after the upgrade, as the override was for an older version of magento's paypal setup.
Delete the override, fixed done and sorted!
Cheers

Related

SilverStripe Blog page not adding

I am trying to add a blog to a SilverStripe site using the Blog Module.
The package seemed to install fine (via composer require silverstripe/blog) and dev/build returned no errors. The ‘Blog’ page type is also available from the ‘Add page’ menu.
After adding a ‘Blog’ page, the site doesn’t redirect to http://localhost:8888/example/admin/pages/edit/show and simply remains on the http://localhost:8888/example/admin/pages/add/ page.
From what I can tell, the only result from this action is an ‘ARCHIVED’ page being added to the sitetree.
Have ?flush=all etc as per other suggestions to no avail and other page types are still being added fine.
Does anyone have any idea what might be going on here?
Currently using:
"silverstripe/cms": "3.6.1",
"silverstripe/framework": "3.6.1",
"phpunit/PHPUnit": "~3.7#stable"
"silverstripe/blog": "2.4.6"
[Edit 13/09/2017]
While simply adding a 'Blog' page produces no observable errors, adding a generic 'Page' and changing the page type to 'Blog' produces the following error in the php_error.log:
PHP Warning: require_once(/Applications/MAMP/htdocs/example/blog/_config.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/example/framework/core/manifest/ConfigManifest.php on line 141
PHP Fatal error: require_once(): Failed opening required '/Applications/MAMP/htdocs/example/blog/_config.php' (include_path='/Applications/MAMP/htdocs/example/vendor/phpunit/phpunit-mock-objects:/Applications/MAMP/htdocs/example/vendor/phpunit/php-token-stream:/Applications/MAMP/htdocs/example/vendor/phpunit/php-code-coverage:/Applications/MAMP/htdocs/example/vendor/phpunit/phpunit:/Applications/MAMP/htdocs/example/vendor/symfony/yaml:.:/Applications/MAMP/htdocs/example/framework:/Applications/MAMP/htdocs/example/framework/parsers:/Applications/MAMP/htdocs/example/framework/thirdparty:.:/Applications/MAMP/bin/php/php5.6.30/lib/php') in /Applications/MAMP/htdocs/example/framework/core/manifest/ConfigManifest.php on line 141
[Edit 13/09/2017]
Trialled the module on a clean install of SilverStripe as well as another project (both using 3.6.1 CMS and 2.4.6 Blog module); both work so far without issue. Perhaps it was an issue with this particular project. Would still be great to get clarification on what the root of this issue might have been.

Magento cant make an order

I have an installation of Magento 1.9.2. I am using a custom theme, and anytime I try and place an order it kicks off the Ajax on the page and then stops with no error messages, but does leave a log:
ERR (3): User Error: Some transactions have not been committed or rolled back in /html/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 4039
I have spent 2 days trying to get to the bottom of this with no joy. It doesn't matter what payment method I use its always the same.
You should try to log all MySQL queries to see what wrong here. lib/Varien/Db/Adapter/Pdo/Mysql.
Open the file lib/Varien/Db/Adapter/Pdo/Mysql.php and change the value of the protected property $_debug to true. You can also change the value of $_logQueryTime which is especially handy when debugging slowdowns. Once you make this change all queries will be logged in the file var/debug/pdo_mysql.log
Hope this will help you. Please put your corrupted query here if you fixed it.
I had today the same problem. Magento 1.9.2.4 with a custom theme. Everything worked fine, expect the checkout-process. The custom theme used the PHP short open tag <? php code ?> . After enabling short_open_tag in the php.ini, everything works fine.

PrestaShop Smarty fatal error

I am really new to PrestaShop and am facing trouble debugging an error in PrestaShop 1.6.1.3
It was working just fine, until I have changed some localization and delivery settings in admin panel.
Now, whenever I make an order, and try to proceed with bank wire payment, I receive the following error:
Fatal error: Call to undefined method Tools::getInvoiceProductName() in /home/makede/domains/manokede.lt/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 36
Any help or guidance for how to solve it or at least debug deeper is much appreciated.
by default class Tools have no method called getInvoiceProductName in Presta, if you added this line (where method called), just comment/delete it
Can you please try clearing your cache and then check again?

Fatal error: Class 'Mage_Livechat_Helper_Data' not found in /home/xxxx/public_html/website_name/app/Mage.php on line 547

I am getting this error when I click on Add new role in
System -> Permissions -> Role
Go to system - tool - compilation and run the compilation and logout from admin and login again. Hope its will not show any error.
The error you're getting is due to Magento trying to instantiate a class alias that no longer exists in the system. This can happen for myriad reasons
You've partially uninstalled an extension and there's old cod lying around
An extension stored class information in the database and Magento used this information to try and instantiate a class
You've written custom code in the system that does something similar.
Magento says it's trying to instantiate a Mage_Livechat_Helper_Data class. There is no Mage_Livechat module that ships with Magento. This probably means the code you're looking for looks like
Mage::getModel('SOMESTRING/livechat');
<sometag module="livechat">
I'd do a text search of your code base (and possibly database) for "livechat". Once you have a list of all the references to this string, it will be easier to debug why this is happening.
I had exactly the same error.
> [Tue Feb 16 17:15:17 2016] [error] [client 79.150.xxx.2] PHP Fatal
> error: Class 'Mage_Livechat_Helper_Data' not found in
> /var/www/vhosts/domain/httpdocs/app/Mage.php on line 547, referer:
> http://domain/index.php/xxx/permissions_role/index/key/5046d5c1da61c6d4e6492d511ed7bd2a/
Just uninstall Tawk.to (livechat) extension from backend trought Magento Connect. You don't need install backend extension, all is configured on tawk.to dashboard.
Hope it works for you,
Alex

Error loading in Magento admin

When I load my Magento admin I get the error.
Fatal error: Call to a member function isLoggedIn() on a non-object
in /home/xxx/public_html/app/code/community/TM/Core/Model/Observer.php
on line 12
I think it happened when I replaced some files somewhere in app/code/...
I’m really stuck on this and need desperate help.
Error is in your extension file TM/Core/Model/Observer.php
Disable extension and check after refresh cache
This was fixed by the Full Page Cache Extension people.
I don't know what they did but it was their extension which broke my magento however they fixed it for me right away

Resources