Mageno : PHP Fatal error: Class 'Mage' not found in MAGENTODIR/shell/abstract.php on line 79 - shell

I normally do the reindexing of "catalog_url" by entering into "shell" directory through SSH & using "indexer.php" But suddenly yesterday I tried to implement the process but getting error. Simply the following command
php -f indexer.php info
is showing the error:
PHP Fatal error: Class 'Mage' not found in MAGENTODIR/shell/abstract.php on line 79
I have changed the "Use flat catalog category" & "Use flat catalog product" to "No" and disabled the "Mage_Log" module output before trying yesterday's reindexing, as far as I can remember. Its Magento 1.7
Any idea or help would be appreciated. Thank You

Found the solution. It was actually occurred because of APC. For testing, I disabled the APC by editing the ini here:
/etc/php5/apache2/conf.d/apc.ini
by doing ";"
;extension=apc.so
Then tried the indexer from inside the magento shell
php -f indexer.php info
and everything worked properly.

Related

Magento2 - Setup Compile Error - Class Not_Existing_Class does not exist

I installed magento 2 Community version successfully. Now when i try to upgrade the setup i get the error Please re-run Magento compile command.
So i ran the compile command
magento setup:di:compile
but i am getting this error
Area configuration aggregation... 5/7 [====================>-------] 71% 35 min
s 736.2 MiB
[ReflectionException]
Class Not_Existing_Class does not exist
[ReflectionException]
Class Not_Existing_Class does not exist
Any ideas as to how this can be resolved ?!
Thanks in advance.
As a temporary fix, i was able to resolve this problem by commenting following line:
\Not_Existing_Class $notExistingClass
in << Magento2 Root Folder >>\vendor\magento\framework\Code\Test\Unit\Generator\TestAsset\TestGenerationClass.php
I have also reported the issue on GitHub here and awaiting the community's response: https://github.com/magento/magento2/issues/2404

Magento 1.11 Fatal Error: Class 'Namespace_Module_Helper_Data' not found in Mage.php

I have created a module, it is throwing fatal error on admin
Fatal Error: Class 'Namespace_Module_Helper_Data' not found in Mage.php
However, this helper class exists in module. This module works fine with Magento 1.10.
I am not able to figure out the problem. Any guesses??
Please check if compilation is enabled from admin > system > Tools > compilation. If you have added extension without disabling the compilation it may cause this problem.
Clear cache & rerun the compilation process again. Hope this may solve your problem.

Magento error after moving website to another server

I just transferred my website to another server by using this guide: http://www.atwix.com/magento/moving-magento-to-another-server/
but when i access the it gives me this error. What does it means? what do i need to do to make it work?
Warning: include(Zend/Log.php) [function.include]: failed to open stream: No such file or directory in /var/www/site/lib/Varien/Autoload.php on line 93
Warning: include() [function.include]: Failed opening 'Zend/Log.php' for inclusion (include_path='/var/www/site/app/code/local:/var/www/site/app/code/community:/var/www/site/app/code/core:/var/www/site/lib:.:/usr/share/php:/usr/share/pear') in /var/www/site/lib/Varien/Autoload.php on line 93
Fatal error: Class 'Zend_Log' not found in /var/www/site/app/code/core/Mage/Core/functions.php on line 247
As far as i can see, it looks like the file in question can't be found at all. What to do is check the directory /www/work/newshop/lib/Zend and make sure the log file is within there. If not, double check your previous server and see if it's there as well. It's possible for you to have just missed it.
If it IS there, make sure permissions are set accordingly. eg; the log.php file should have it's permissions set to 644. (Read and Write for owner, Read for group and read for public)
did you remove the cache folder from Magento After moved your installation?
And wich PHP Version ist installed on the new Server?
Magento have already problem with php5.4 and php5.5 (reference: https://bugs.php.net/bug.php?id=62639)

magento PHP Fatal error: Class 'Varien_Data_Tree_Node_Collection'

after moving my mangento installation fromm mywebsite.com/mangento To mywebsite.com
I get an error message:\
my magneto is displaying "Site Down For Maintenance" with white screen
I get an error in my error_log file
PHP Fatal error: Class 'Varien_Data_Tree_Node_Collection' not found in public_html/lib/Varien/Data/Tree.php on line 51
Varien_Data_Tree_Node_Collection make sure this class file collection.php exist is in folder Varien/Data/Tree/Node/Collection.php
Also check its permission.
There is a probability that during upload/Move some files were not uploaded successfully

Joomla Fatal error

I am new to Joomla and i have created a component folder as com_joomlabook
within that 2 files as joomlabook.php and joomlabook.html.php
But when i run it in the browser using http://localhost/joomla/Joomla_1.5.7-Stable-Full_Package/administrator/index.php?option=com_joomlabook
Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:/usr/share/php:/usr/share/pear') in /home/ntdg/public_html/joomla/Joomla_1.5.7-Stable-Full_Package/administrator/components/com_joomlabook/joomlabook.php on line 6 that is in the getPath line why so??Please suggest me.
Did you "install" the component or add a row to the components table? Joomla doesn't just see what folders are there and run scripts.
I actually just wrote a blog post last week on how to create your own components quickly, which might be useful: http://infuseddesign.co.uk/blog/7-joomla/24-building-joomla-components

Resources