Magento error with custom module - magento

I am getting the following error when I tried to create a Magento custom module.
I have followed this tutorial but can't see where I am going wrong, can anyone help please?
http://www.smashingmagazine.com/2012/03/01/basics-creating-magento-module/
2015-03-23T23:57:01+00:00 ERR (3): Warning: include(Mage\Company\ScheduledPriceDrop\Model\Observer.php): failed to open stream: No such file or directory in C:\Work\#Company\Project1\src\trunk\public_html\lib\Varien\Autoload.php on line 94
2015-03-23T23:57:01+00:00 ERR (3): Warning: include(): Failed opening 'Mage\Company\ScheduledPriceDrop\Model\Observer.php' for inclusion (include_path='C:\Work\#Company\Project1\src\trunk\public_html\app\code\local;C:\Work\#Company\Project1\src\trunk\public_html\app\code\community;C:\Work\#Company\Project1\src\trunk\public_html\app\code\core;C:\Work\#Company\Project1\src\trunk\public_html\lib;.;C:\php\pear') in C:\Work\#Company\Project1\src\trunk\public_html\lib\Varien\Autoload.php on line 94
2015-03-23T23:57:01+00:00 ERR (3): Warning: include(Mage\Company\ScheduledPriceDrop\Model\Observer.php): failed to open stream: No such file or directory in C:\Work\#Company\Project1\src\trunk\public_html\lib\Varien\Autoload.php on line 94
2015-03-23T23:57:01+00:00 ERR (3): Warning: include(): Failed opening 'Mage\Company\ScheduledPriceDrop\Model\Observer.php' for inclusion (include_path='C:\Work\#Company\Project1\src\trunk\public_html\app\code\local;C:\Work\#Company\Project1\src\trunk\public_html\app\code\community;C:\Work\#Company\Project1\src\trunk\public_html\app\code\core;C:\Work\#Company\Project1\src\trunk\public_html\lib;.;C:\php\pear') in C:\Work\#Company\Project1\src\trunk\public_html\lib\Varien\Autoload.php on line 94
2015-03-23T23:57:01+00:00 ERR (3): Recoverable Error: Object of class Mage_Cron_Model_Schedule could not be converted to string in C:\Work\#Company\Project1\src\trunk\public_html\lib\Varien\Db\Adapter\Pdo\Mysql.php on line 2869

According to your log the execution didn't find the observer.php in your module
Company\ScheduledPriceDrop\Model\Observer.php
Actually it seems that it is searching for this observer file in core, this mostly happens if it doesnot find it in local domain.
If this is not the case than you have to provide your code.
Hope this will help.

There is error in this module Company\ScheduledPriceDrop disable it. there is error in this module you need to correct it.

Related

Magento 1 Embedded ERP Removed but AdvancedStock still called

I attempted to remove the Embedded ERP from my website. Everything worked smoothly except som SQL stuff. But when a customer attempts to add an item to their cart, the flash loads forever and the System.log throws the following.
ERR (3): Warning: include(Mage/AdvancedStock/Helper/Product/Base.php):
failed to open stream: No such file or directory in
/var/www/phono.dk/public_html/subdomains/dev/lib/Varien/Autoload.php
on line 94 ERR (3): Warning:
include(Mage/AdvancedStock/Helper/Product/Base.php): failed to open
stream: No such file or directory in
/var/www/phono.dk/public_html/subdomains/dev/lib/Varien/Autoload.php
on line 94 ERR (3): Warning: include(): Failed opening
'Mage/AdvancedStock/Helper/Product/Base.php' for inclusion
(include_path='/var/www/phono.dk/public_html/subdomains/dev/app/code/local:/var/www/phono.dk/public_html/subdomains/dev/app/code/community:/var/www/phono.dk/public_html/subdomains/dev/app/code/core:/var/www/phono.dk/public_html/subdomains/dev/lib:.:/usr/share/php:/usr/share/pear')
in
/var/www/phono.dk/public_html/subdomains/dev/lib/Varien/Autoload.php
on line 94
I have no idea what's still calling for AdvancedStock, but whatever does it shouldn't. Any suggestions as to what that might be?

Getting errors after shifting live site to local

Warning: include(Mage/Core/Model/App.php): failed to open stream: No such file or directory in /var/www/html/sitename/lib/Varien/Autoload.php on line 93
Warning: include(): Failed opening 'Mage/Core/Model/App.php' for inclusion (include_path='/var/www/html/sitename/app/code/local:/var/www/html/sitename/app/code/community:/var/www/html/sitename/app/code/core:/var/www/html/sitename/lib:.:/usr/share/php:/usr/share/pear') in /var/www/html/sitename/lib/Varien/Autoload.php on line 93
Fatal error: Class 'Mage_Core_Model_App' not found in /var/www/html/sitename/app/Mage.php on line 589
I have tried vhost also, but getting same errors.
Have you tried to update dependencies with composer?
cd /var/www/html/sitename/
composer update
Could also be useful to check db settings table for any absolute roots.

Sagepay payment issues

i am trying to fix sagepay payment and receiving few issues,
first when i select sagepay then it auto generate and show name (like this Cuyike Xopuyo) automatically in name field. is there any virus?
second in log file i can see these error messages. what these error means?
2015-09-28T11:45:43+00:00 ERR (3): Warning: include(Mage/HSBC/Model/Remote.php): failed to open stream: No such file or directory in public_html/lib/Varien/Autoload.php on line 94
2015-09-28T11:45:43+00:00 ERR (3): Warning: include(Mage/HSBC/Model/Remote.php): failed to open stream: No such file or directory in public_html/lib/Varien/Autoload.php on line 94
2015-09-28T11:45:43+00:00 ERR (3): Warning: include(): Failed opening 'Mage/HSBC/Model/Remote.php' for inclusion (include_path='/public_html/app/code/local:/public_html/app/code/community:/public_html/app/code/core:/public_html/lib:.:/opt/php54/lib/php') in public_html/lib/Varien/Autoload.php on line 94
thanks
Regarding your second question :
Your error messages relate to an old payment module extension you had installed for HSBC by a company called studioforty9. You should delete all references to it from your mysql database with the following mysql query :
DELETE FROM `core_config_data` WHERE `path` LIKE '%payment/HSBC/%';

Error : Warning: include(Mage\Venustheme\Brand\Model\System\Config\Source\ListBrand.php)

Magento shows below error when i click on product to edit.
Warning: include(Mage\Venustheme\Brand\Model\System\Config\Source\ListBrand.php) [function.include]: failed to open stream: No such file or directory in ..\lib\Varien\Autoload.php on line 93
i am looking for any trick/method which can help me debug this error, actually i want to know from which file it is coming

Why am I getting error while setting up cron job in magento?

2013-06-24T08:39:26+00:00 ERR (3): Notice: Trying to get property of non-object in /var/www/magento-ext/app/code/core/Mage/Cron/Model/Observer.php on line 68
2013-06-24T08:39:26+00:00 ERR (3): Warning: include(Mage/Neev/Setattribute/Model/Observer.php): failed to open stream: No such file or directory in /var/www/magento-ext/lib/Varien/Autoload.php on line 93
2013-06-24T08:39:26+00:00 ERR (3): Warning: include(): Failed opening 'Mage/Neev/Setattribute/Model/Observer.php' for inclusion (include_path='/var/www/magento-ext/app/code/local:/var/www/magento-ext/app/code/community:/var/www/magento-ext/app/code/core:/var/www/magento-ext/lib:.:/usr/share/php:/usr/share/pear') in /var/www/magento-ext/lib/Varien/Autoload.php on line 93
2013-06-24T08:39:27+00:00 ERR (3): Warning: include(Mage/Neev/Setattribute/Model/Observer.php): failed to open stream: No such file or directory in /var/www/magento-ext/lib/Varien/Autoload.php on line 93
2013-06-24T08:39:27+00:00 ERR (3): Warning: include(): Failed opening 'Mage/Neev/Setattribute/Model/Observer.php' for inclusion (include_path='/var/www/magento-ext/app/code/local:/var/www/magento-ext/app/code/community:/var/www/magento-ext/app/code/core:/var/www/magento-ext/lib:.:/usr/share/php:/usr/share/pear') in /var/www/magento-ext/lib/Varien/Autoload.php on line 93
Magento 1.7
your system is obviously trying to load an observer class which can not be found by the system, hence the attempt to load it from Mage/Neev, which is part of magentos fallback system. check if there is any config.xml file which registers an event in the section for a class with "Neev" in the name...
good luck!

Resources