I need help I cant find any information about this error. even in Prestashop forum
I copied my live site and transfer it to my local server..
Configurations are now OK but when I click on any product at the front-end.
I received the below error
Fatal error: Class 'ObjectModel' not found in F:\xampp2\htdocs\checkedentertainment\product.php on line 32
When I checked the product on the backend the product is still in the products and all are their smoothly.
Any ideas?
What the error says is that the class ObjectModel is missing. It couldn't be loaded. Many of the core classes in PrestaShop inherits from the ObjectModel so it is cruicial that it exists.
Please check your classes folder and make sure all your classes are there. There should be an ObjectModel.php file in the classes directory, if not, make sure to put it there!
Related
I have installed a custom module in my Magento website but now, when I try to reach the frontend of my website I receive an error. Class 'ShopgateConfig' not found.
PHP Fatal error: Class 'ShopgateConfig' not found in C:\\xampp\\htdocs\\blugento\\.modman\\shopgate_magento_integration\\src\\app\\code\\community\\Shopgate\\Framework\\Model\\Config.php on line 42, referer: blugento.local/index.php/admin/system_config/index/key/....
But the class exists because I found it in one of the module files. This is the code where the class is called:
class Shopgate_Framework_Model_Config extends ShopgateConfig{...}
And there is the implementatin of the class:
class ShopgateConfig extends ShopgateContainer implements ShopgateConfigInterface{...}
Which could be the problem? Do I have to change something in the config.xml file or somewhere to find my class?
If is necessary I'll post more of my code if you'll tell me!
Thank you very much!
Do do refresh the cache ?
Do you see the module enabled in your configuration (system > configuration > advanced > Advanced) ?
What is the exact error you get in your log ?
Well you are on M1 so you need to confirm ShopgateConfig class is on right directory. Magento will show that error when they don't find right path for ShopgateConfig.php file
Can you tell me path of ShopgateConfig file? And from below syntax
class Shopgate_Framework_Model_Config extends ShopgateConfig
I assume if you are calling this file then it must be inside lib folder
When I add mailup in magento, I receive the following error message on the dashboard :
Class 'MailUp_MailUpSync_Helper_Data' not found
Have you looked in app/code/local/MailUp/MailUpSync/Helper/ or app/code/community/MailUp/MailUpSync/Helper/ and see if the Data.php class file is there?
The extension needs that class and seems to be the reported error.
If it's not there, go through the extension and place all the files in their correct folders again.
I am new to Magento Framework. I've just downloaded theme and followed all the steps to install it in Magento. But its showing me the below error when I tried to load my home page.
Fatal error: Class 'Mage_Ves_Tempcp_Helper_Framework' not found in C:\wamp\www\dummysite\app\Mage.php on line 547
Need Help.
Thanks
There is some problem with theme and it is missing the helper file. Make sure the file exists in
app/code/community/Ves/Tempcp/Helper/Framework.php
or
app/code/local/Ves/Tempcp/Helper/Framework.php
Also reupload all your theme files to make sure none of them are missing.
Hope it helps
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.
I've created a custom banner module for Magento and I've tested it locally on my Vagrant/VirtualBox setup running an instance of precise32 and everything is working great.
When I pulled the code from GitHub on to a staging server the extension is not working and I'm getting the following error:
PHP Fatal error: Call to a member function getCollection() on a non-object in /var/colourbox/app/code/local/AffinityCloud/ACBanners/Block/Slider.php on line 7, referer: http://colourbox.affinitycloud.co.uk/tub-storage.html
This is while viewing the home page, so I'm not sure why it's referencing http://colourbox.affinitycloud.co.uk/tub-storage.html as the referer as this is a category page.
I've cleared the cache (is disabled anyway) and reindexed. Stil no joy. I've also tried to rename the model classes using lowercase characters and the first character uppercase with no result.
I've added the module code to GitHub below so you can see the code:
https://github.com/garethdaine/acbanners
Any ideas why this would be working locally and not on the staging server? It's as if it can't find the model classes but has no problem fining the Slider.php class.
I'm at a loss as to what to do here.
NOTE: For brevity, I would like to add that I have logged out and back in to the admin, while also deleting the module tables and the reference in core_resource to no avail. It creates the tables fine but I still get the same issues and the module is showing as enabled in the advanced config.
The problem is case sensitivity.
On windows systems the file names are not case sensitive. On Unix they are case sensitive.
So in the ways you configured the module and named the files, when calling Mage::getModel('acbanners/acbanners') the magento autoloader looks for the file
AffinityCloud/ACBanners/Model/Acbanners.php But the real name of your file is AffinityCloud/ACBanners/Model/ACBanners.php
So the file is not found and the class is not loaded and Mage::getModel(...) returns null.
You have 2 options here.
The cleanest and fastest. rename all your classes in the Model folder to start with a capital letter and the rest should be lowercase. Acbanners.php in the example above. You may need to do the same for the files in Block and Helper.
The long version. If you want to keep the file names you need to change Mage::getModel('acbanners/acbanners') to Mage::getModel('acbanners/aCBanners') or Mage::getModel('acbanners/ACBanners'). but I guess this will take a lot of refactoring. You may also need this for blocks and helpers also.