Fatal Error Zend_Uri Magento - 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.

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

Magento Error: Class_Magestore_Magenotification_Helper_Data not found

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

CodeIgniter transfer from WAMP to host subfolder error

I was creating a simple CodeIgniter site on my WAMP and all runs well.
But when uploaded to the host it says CI_Controller not found in CodeIgniter.php
Fatal error: Class 'CI_Controller' not found in /home/<myhost>/public_html/pms/system/core/CodeIgniter.php on line 233
I checked all the paths and seems right, i even went to the CodeIgniter.php file.
My database was migrated from local to the host, config was set, still this error comes out.
Is there something I'm missing? I really cant find anything on the net that could allow me to understand why it returns an error.
Hope someone could help understand this.
Thanks.
CodeIgniter will most probably figure out the base_url by itself:
$config['base_url'] = '';
... should work.
Fatal error: Class 'CI_Controller' not found in /home//public_html/pms/system/core/CodeIgniter.php on line 233
The path is not correct /home/public_html/pms/system/core/CodeIgniter.php

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.

set_flashdata() triggers a fatal error in PyroCMS

I moved a Pyrocms site to another server.
Go to index: blank page.
Turn on errors: get this
A PHP Error was encountered
Severity: Notice
Message: Undefined property: Pages::$session
Filename: core/Model.php
Line Number: 50
Fatal error: Call to a member function set_flashdata() on a non-object in /var/www/vhosts/brokentalkers.com/httpdocs/system/pyrocms/modules/modules/models/module_m.php on line 193
If it sheds any light, I made a tar.gz of the contents of the old httpdocs folder, and extracted it in the new httpdocs folder.
I made a duplicate of the database with an identical user, so config/database.php shouldn't need changing.
Any ideas? Thanks in advance.
It seems like $session class is not initializing correctly.
Check for default_ci_sessions table, if you are using sessions for database.
Check if the constructor is loading sessions library.
Check if session is in autoload.php config

Resources