Magento Error: Class_Magestore_Magenotification_Helper_Data not found - magento

Using Magento in admin, when I click the configuration tab, I get the following error:
"Fatal error: Class 'Magestore_Magenotification_Helper_Data' not found in."
Does anyone know why this would happen and how to fix it?

Normally this error occurs only if your Helper data is missing. Check your Data.php file at your_code_pool/Magestore/Magenotification/Helper. If that file does not exist, check your downloaded module or contact #Magestore if you install this module by Magento connect or create Data.php file with following code: (This may fix the above error only)
<?php
class Magestore_Magenotification_Helper_Data extends Mage_Core_Helper_Abstract
{
}

You need to disable the module. Go to app/etc/modules in your codebase and open file Magestore_Magenotification.xml and change the <active> node to false. Clear magento cache and reload the page.

Please check the config.xml of the module and also verify the namespace of the module which must match with the module name space under app/etc/modulename_namespace.xml.

I had this error because I was on PHP 7.1 and not 5.6

Related

Cannot find named PHP session module magento 1.7 version

I found below error in system.log
Warning: session_module_name(): Cannot find named PHP session module (file) in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php on line 67
Can anyone know solution.
To resolve such type of warning error one should have to use below code in
layout file.
Its worked for me.
![CDATA[files]] in session_save node

Fatal Error Zend_Uri Magento

Suddenly our Magento store has a fatal error:
PHP Fatal error: Class 'Zend_Uri' not found in /.../public_html/app/code/core/Mage/Core/Model/Store.php on line 726
No new plugins or modules have been added recently.
Compiler is not active, var/cache and var/session are empty.
Permissions are resetted for all magento folders / files.
No other errors or more information is provided, but i have a blank page - on frontend and backend.
Magento version 1.7.0.2. Any help appreciated.
Line 726 of the Store.php file looks like this
#File: app/code/core/Mage/Core/Model/Store.php
$uri = Zend_Uri::factory($secureBaseUrl);
That is, Magento's making a call to the static method factory on the Zend_Uri class. Your error
PHP Fatal error: Class 'Zend_Uri' not found
Indicates that PHP can't find the Zend_Uri class. This could be because
The class definition file is no longer there,
Someone has changed the class definition file so it's no longer valid
A local code pool override file exists and someone has edited the class override file so it's no longer valid
Someone has edited the lib/Varien/Autoload.php so it can't load the Zend_Uri class file
A local code pool override file exists for Varien/Autoload.php and someone has edited it so it can't load the Zend_Uri class file
Someone has changed the php include path (normally defined in app/Mage.php) so it doesn't include the lib folder, or the code pool where a local code pool override might exist
I'd start by looking for the Zend_Uri class in lib/Zend/Uri.php, and then work your way down the list until you figure out why PHP isn't autoloading this class file.

Fatal error: Call to a member function toOptionArray() on a non-object in Magento admin

When I click on Shipping Methods tab under Magento system->configuration->SALES tab I am faced with the following error:
Fatal error: Call to a member function toOptionArray() on a non-object in D:\xampp\htdocs\magento\app\code\core\Mage\Adminhtml\Block\System\Config\Form.php on line 463
The most astounding thing is that this is a fresh installation of Magento. Can anyone tell me how can I remove this error?
Add to config.xml
<global>
<models>
<stockindicator>
<class>Namespace_ModuleName_Model</class>
</stockindicator>
</models>
</global>
Following this tutorial solve the problem => http://kb.magenting.com/content/20/49/en/magento-error-call-to-a-member-function-tooptionarray-on-a-non-object.html
Go to Magento Connect Manager, click Check For Upgrades. In Actions, upgrade the modules that have the new version, and reinstall these modules:
Interface_Adminhtml_Default
Mage_All_Latest
Mage_Core_Adminhtml
Mage_Core_Modules
Check mark the "Clear all sessions after successfull install or upgrade", and then click Commit Changes.
This should solve the error:-
Disable Compilation (System -> Tools -> Compilation)
Refresh Cache (System -> Cache Management)
I ran into this issue and none of the existing answers out there helped. After some trial and error, I discovered my issue was due to a case sensitive issue between running on Windows and Linux.
My widget.xml file contained this line:
<source_model>widget/modeoptions</source_model>
My model class was declared as:
class My_Widget_Model_ModeOptions
This worked as expected when deployed out an an Magento instance running in Mirosoft Azure. When I deployed the same exact code to a Magento instance running on Linux, I received the error.
Call to a member function toOptionArray() on a non-object in ../includes/src/Mage_Widget_Block_Adminhtml_Widget_Options.php
After updating the widget.xml to match the class' case, everything worked as expected on a Windows and Linux server.
Updated/fixed line:
<source_model>widget/ModeOptions</source_model>
Hope this might help some others struggling with this error.
According to webshopapps support all you should need to do is compile through system->tools->compilation. Personally I compiled, flushed caches, logged out and logged in again. It worked.
I had previously tried the update modules method and had to restore from a backup after it broke magento 1.9.0.1
Go to app\code\core\Mage\Adminhtml\Block\System\Config\Form.php
find the following on line 463
$optionArray = $sourceModel->toOptionArray($fieldType == ‘multiselect’);
and replace it with:
if(is_object($sourceModel)){
$optionArray = $sourceModel->toOptionArray($fieldType == ‘multiselect’);
} else {
Mage::log($e->source_model);
}

Magento: Unable to add new transaction email template due to missing Mage/Email/Helper/Data.php

I'm trying to add a new email template via adminhtml -> system -> transactional email -> new template.
However, when I go to that page, the drop down list for the default template has no option in it and there is nothing else on that page.
I checked on /var/log/system.log and the found the following lines:
Warning: include(Mage/Email/Helper/Data.php) [function.include]: failed to open stream:
No such file or directory in
/home/jille/public_html/lib/Varien/Autoload.php on line 93
Warning: include() [function.include]:
Failed opening 'Mage/Email/Helper/Data.php' for inclusion
(include_path='/home/jille/public_html/app/code/local:/home/jille/public_html/app/code/community:/home/jille/public_html/app/code/core:/home/jille/public_html/lib:.:/usr/lib/php:/usr/local/lib/php')
in /home/jille/public_html/lib/Varien/Autoload.php on line 93
I went into the source and could not find any reference to this file. Any idea on how to fix this issue?
Thank you very much
If helper is used or in translate xml node you refer to module then magento will search for module/Helper/Data.php file.
You just create a file data.php
class Mage_Modulename_Helper_Data extends Mage_Core_Helper_Abstract
{
}
This will fix your error.

no file uploaded error in magento

I have upgraded my Magento version from 1.4.0.1 to 1.7.0.2.
Now I tried to upload a theme package using upload package file in Magento Connect Manager. It shows an error 'No file was uploaded'.
Please get me a solution.
Try using the Version 2.0 from the dropdown on the extensionpage on magento-connect, that should work.
The No file was uploaded error is return when:
The form key is invalid
$_FILES doesn't exist
$_FILES['file'] is empty
I had the same issue and managed to fix it by commenting out the rewrite instructions in my main .htaccess file in Magento's root folder. Don't forget to add those instructions back after you finished installing your module.
I suggest you keep a .htaccess.magento-connect file for when you want to use Magento Connect along with your regular .htaccess file, and switch between the two.

Resources