Magento - zend - backend error - php

I get the following error when i am logged into the backend in magento
Fatal error: Interface 'Zend_Http_Client_Adapter_Interface' not found in /homepages/45/d210005774/htdocs/websitename/lib/Varien/Http/Adapter/Curl.php on line 176
Also i got this error previously in my index management section in magento
Fatal error: Call to undefined method Zend_Locale_Data::disableCache() in
/homepages/45/d210005774/htdocs/websitename/lib/Zend/Locale/Format.php
on line 153
Could anyone help me out with this? I think the problem is to do with zend framework but i am not sure whats causing this

It looks like there's something wrong with your installation. Either you're missing files from Magento's lib folder, you have damaged files in Magento's lib folder, or (longshot) your PHP include path is pointing in a different location.
First thing I'd do is download a fresh install of your version of Magento, unzip it in a separate folder, and then run
diff -r /homepages/45/d210005774/htdocs/websitename/ /path/to/fresh/magento
This will give you a list of differences between the standard core files and your own.
If you want to diagnose specific files, check
lib/Zend/Http/Client/Adapter/Interface.php
for the missing interface
interface Zend_Http_Client_Adapter_Interface
{
...
}
And check
lib/Zend/Locale
for the missing method
public static function disableCache($flag)
{
self::$_cacheDisabled = (boolean) $flag;
}
Finally, check you PHP include path to ensure there isn't an older copy of Magento and/or Zend being included.

Upload Zend folder again.it works for me.

Related

Magento theme not working

I have purchased a theme from themeforest and I downloaded the zip file. Then I extracted it according to the documentation along with the zip file. Then I added "app, js, media, skin to the correspondent folders".
Compilation mode is disabled (default). Then I went to admin panel and cleared cache, but when I opened my frontend it shows me an error saying:
Fatal error: Class 'Mage_Jollyanytheme_Helper_Data' not found in C:\wamp\www\magento\app\Mage.php on line 547
I have googled it and referred several questions such as:
Magento Helper Class Not Found Error
Magento : Fatal error: Class 'Mage_Giftcards_Helper_Data' not found in ...../app/Mage.php on line 546
But I could not reveal any useful information from those questions.
How can I sort this out?
Check that in your app/code/local/Jollyanytheme/Helper/Data.php is exists with following code
class Mage_Jollyanytheme_Helper_Data extends Mage_Core_Helper_Abstract
{
}
If not then add it.
I have solved it, I needed to add two file directories that were in different folders. Means in first step I need to install app,js,media,skin etc, and in second step I need to install etc modules also. Thanks guys.

Fatal error: Call to a member function extend() on a non-object in /***/***/public_html/lib/Varien/Simplexml/Config.php on line 600

Fatal error: Call to a member function extend() on a non-object in /***/***/public_html/lib/Varien/Simplexml/Config.php on line 600
I'm getting this issue while i move magento website from localhost to live server. I have followed all steps to move. It is working great on local but having mentioned issue on live server. i have checked all files and folder permissions are 755, 644.
After search couples of day nothing solution found. please help me to fix this.
Magento ver. is 1.9.0.1,
php ver. 5.4
function on line 600 in config.php is
public function extend(Varien_Simplexml_Config $config, $overwrite=true)
{
$this->getNode()->extend($config->getNode(), $overwrite);
return $this;
}
i would really appreciate your support.
Thank you.
The problem is the magneto can't read your xml files. So check file permission again for xml files and check your xml files under app/etc folder and every custom modules under app/code/local/ may be some xml files are corrupted (miss formed).
I've experienced the same error as above when installing the SoftProdigy "Enhanced Order Delivery Date" extension.
This specific instance was easily reslved to heading to app/etc and renaming the folder from Softprodigy_Deliverydate.xml to Softprodigy_Deliverydate.
Both front and back office available again following the renaming.
I hope this helps!

Fatal error: Call to undefined function wp_initial_constants() in /home/site/public_html/wp-settings.php on line 26

While updating WordPress 3.6.1 on my site I am getting the following error and the site crashes. Why is this happening to my site, and how can I overcome this problem?
Following error arises:
Fatal error: Call to undefined function wp_initial_constants() in /home/adventec/public_html/wp-settings.php on line 26
Try re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress.
Make sure that you delete the old copies of files & folder before uploading the new ones.
wp() is quite essential function. It resides in functions.php file (don't confuse with functions.php in theme, different thing) and I don't think you can load WP without passing require directive for that file at some point.
So your install seems very broken - either functions.php file in core is damaged or something else is broken and makes it skip loading that file.

vtiger crm 5.4.0 custom module installation shows Sorry! Attempt to access restricted file

I am in developing of a custom module in Vtiger CRM 5.4.0 .when i installing the newly developed custom module at some server it shows a message 'Sorry! Attempt to access restricted file.' and i can't install the module.
Please help me rectify this issue.
The most likely cause for the vTiger error “Sorry! Attempt to access restricted file.” is the $root_directory value in the ‘config.inc.php’ is incorrect or misspelled.
In order to correct it follow the steps below:
Go to your vTigerCRM directory
Open “config.inc.php” with your favorite text editor
Go to line 86 and adjust $root_directory value to correct vTiger directory. Note, that the directory must end with /. It should look something like this – $root_directory = ‘/var/www/vtigercrm/’;
Not sure but, did the zip file that you imported into de CRM on other server actually copied the module folder?
The menssage 'Sorry! Attempt to access restricted file.' usually it's about privileges or the CRM cannot access the module folder because it doesn't exist.
A couple of things spring to mind:
Have you actually created the modules/Mytest directory and populated it? (Using the template in vtlib/ModuleDir/5.4.0 and then editing the filenames and class of Mytest.php)
Check the case of your module class definition, e.g. class Mytest vs. class Mytest
If you are using any version control or symlinks in the development of your modules/Mytest code then this can trigger the "Sorry! Attempt to access restricted file." messages.
In module setup script make sure you have added this lines.
$module->initTables();
$module->initWebservice();

Installing CakePHP 2.0 and Getting "Class 'Component' not found" error

I decided instead of using the migration guide/shell for the upgrade from 1.3 to 2.0 of CakePHP to just go with a vanilla installation of it. For some reason, I'm getting this error:
Fatal error: Class 'Component' not found in /home/bob_cobb/public_html/mydomain.com/lib/Cake/Controller/Component/SessionComponent.php on line 32
When trying to access my website. I looked to see if SessionComponent.php even exists and it doesn't on my server, nor in the 2.0 repository. Do I need to create this file or something? (Edit: The file exists.)
its not about the sessioncomponent but the Component class itself:
App::uses('Component', 'Controller');
This declaration says where to find it. But cake doesnt seem to find it. so it is probably missing.
it should be in /Cake/Controller/
Actually, SessionComponent.php does exist, at least in the official 2.0.6 repository. Your download/upgrade was probably corrupted. Try adding the file to your server. If you're lucky, that's the only issue; more likely, though, you'll need to reupgrade.
I'm not sure where you're looking, but SessionComponent.php does actually exist in the 2.0.x repo:
https://github.com/cakephp/cakephp/blob/master/lib/Cake/Controller/Component/SessionComponent.php
You may want to re-download your whole /lib section if you're missing files.

Categories