Fatal error: Call to undefined method Mage_GoogleAnalytics magento - magento

In my magento shop I see the following error after installing magento 1.9:
Fatal error: Call to undefined method Mage_GoogleAnalytics_Helper_Data::getAccountId() in /var/www/magento/app/design/frontend/base/default/template/googleanalytics/ga.phtml on line 29
When I disable Mage_GoogleAnalytics in my settings the error disappeared and my site is working again.
Could anyone help me to fix this?

When you upgrade magento then all core files not update sometimes then this issue come.
You need to make sure all files for GoogleAnalytics available and updated. You can check here:
/app/code/core/Mage/GoogleAnalytics/
/app/design/frontend/base/default/layout/googleanalytics.xml
/app/design/frontend/base/default/template/googleanalytics/ga.phtml
You can compare these files from new installation and update if need.
After that clear cache.
This will work.

Just need to tweak your settings and flush cache.
Open magento admin panel and under system->configuration ensure you have your google analytics account entered. If you have multiple website/store scopes visit each one to be sure.
Make sure to flush all caches afterwards.

Related

Lesti's FPC not working with Fishpig get post collection

I've developed a magento website with the fishpig extension, and as soon as I turned on my Lesti's FPC, i got a white page without any errors on the homepage.
I've managed to trace the error down to the post collection, but I don't know how to fix this issue. Someone had any experience with this?
This is what my post collection looks like:
<?php $posts = Mage::getResourceModel('wordpress/post_collection')
->addPostTypeFilter('sliders')
->load();
?>
I'm pretty sure this error has nothing to do with Lesti FPC. If you have a white page without any errors, this just means that an error has occured but your PHP error display settings prevent it from being displayed. To display the error, open up your Magento index.php file and uncomment the following line:
ini_set('display_errors', 1);
This will reveal the PHP error message. That being said, your issue will probably be fixed by performing the following steps:
Upgrade Magento WordPress Integration to the latest version. Also update any add-on extensions for Magento WordPress Integration.
Check System > Configuration > WordPress for any errors/warnings and fix every single one.
Check var/log/ for a wordpress.log file. Delete this file and then go back to the page that triggers the error. See whether any new errors are added to the file.
Please perform these 3 steps (these steps should be followed for any error with Magento WordPress Integration) and see whether the error persists. If the error does remain after following these steps, please update your question with the specific error message (but only after following these 3 steps).

Magento : Fatal error : Call to a member function getFrontend() on a non-object

Hi i am a fresher in magento. I have installed a new theme in magento and it was working fine. but when i navigate to products individual page, an error was showing
'Call to a member function getFrontend() on a non-object'.....
Thanks for support in Advance
This was ask a long time ago, but I wanted to provide my input.
I had this same error and it was from moving code that I new worked in production to a staging server. It turns out there was a custom attribute added to my attribute set that didn't get transferred over to staging and was causing the error.
in you new theme there may be error in code of list.phtml
you can check that page located in app/design/frontend/default or your theme /catalog/product/list.phtml
you can compare the code with your previous theme by following the above location and do the required modifacation.
try use default magento theme, if no problem found maybe there is missing files on your theme

Magento Changing Shipping Method Causes Internal Server Error 500

I am working on a Magento store and if I change anything related to shipping in the back-end it gives me an internal server error (500 Error). This only happens when trying to save the shipping configuration settings--I just changed the tax settings with no problem. I have tried everything from resetting the permissions to editing the .htaccess file.
Screen shots:
I get this:
It is allowing me to change any other setting though..
If anyone knows why this might be happening please let me know.
From the additional information you posted in the comments section, it appears that your server does not have the PHP bindings for mcrypt installed.
Your webhost will either need to install mcrypt, or you'll need to find another host that does.
The requirements for running Magento are listed on the website: http://www.magentocommerce.com/system-requirements

Error when adding a configurable Product in Magento 1.6.1

When i create a configurable product i first get the option to select configurable attributes.
After selecting the wanted configurable attributes and pressing save i can edit the new product. I also get a javascript error:
Uncaught ReferenceError: id_219a600301fb6404e4b3542db1626331_UploaderJsObject is not defined
ReferenceError: super_product_linksJsObject is not defined
This error stops me from adding simple products to the configurable product.
Also after saving and rediting the product i always first get the option to select the configurable attributes again.
With the given information I'm unable to reproduce the error. I'll try giving some debugging pointers. Even if they don't help, they might provide some insight into the source of the problem.
I suggest downloading the 1.6.1 source from http://www.magentocommerce.com/getmagento/1.6.1.0/magento-1.6.1.0.tar.gz and running a diff to see if a core file is modified. If yes, revert the core changes and try again.
If there is no difference, try disabling one none-core module after the other by setting the <active> flag in the files in app/etc/modules/*.xml to false, and test again until the JS exception disappears.
Be sure to clear the cache after each change (better - disable all Magento caching and JS merging during this procedure). Also be sure to clear the browser cache before each test.

The page isn't redirecting properly when install magento 1.6

When I install magento 1.6, it shows below errors, thanks for giving some advise:
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
I was seeing the same error message when installing the Enterprise training environment. I just needed to delete app/etc/local.xml to clear out the default settings and allow the install process to proceed.
Had the same problem. I needed to delete database and create a new one. Even if the previous one was empty without any table. Still don't know why, but I found this solution from somebody who had the same problem.

Resources