Function edited but still error in Prestashop - php

i've tried to install a module in Prestashop called COD with fee.
On install i received this message:
Fatal error: Access level to Inix2Module::displayWarning() must be public (as in class ModuleCore) in /home/lw1m2hta/public_html/test/ingrosso2/modules/inixframe/InixModule.php on line 3792
[PrestaShop] Fatal error in module file :/home/lw1m2hta/public_html/test/ingrosso2/modules/inixframe/InixModule.php:
Access level to Inix2Module::displayWarning() must be public (as in class ModuleCore)
So i tried to solve this problem as suggested by other people in presta forum and i went to the line and changed "protected" function to "public". The problem is that i still have the fatal error displaying in my site.
I really don't understand why prestashop doesn't check the edit. Is there a solution?

Related

Magento Fatal error: Cannot declare trait Magento\Framework\Interception\Interceptor

I got error after scanning the website with cpanel scanner.
Fatal error: Cannot declare trait Magento\Framework\Interception\Interceptor, because the name is already in use in /home/..../public_html/generated/code/Magento/Framework/App/State/Interceptor.php on line 19.
I have tried all answers related to this but no luck. I have update code from fresh Interceptor file as well but still same error.
Please help me to reolve this.
Link is https://www.advcylinderheads.com/
Many Thanks

Getting a 500 error when I try to login to the Magento 2 admin panel

Currently trying to login to the Magento backend panel (version 2.2.7) but whenever I try to access the admin panel, I'm getting an error reading:
This page isn’t working www.websitename.com is currently unable to
handle this request.
HTTP ERROR 500
I've looked in the logs and there seems to be the following Apache error in them.
Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to a
member function getNext() on null in
/var/www/vhosts/websitename.com/httpdocs/generated/code/Magento/User/Model/User/Interceptor.php:529\nStack
trace:\n#0
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Manager.php(96):
Magento\User\Model\User\Interceptor->getInterfaceLocale()\n#1
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Resolver.php(77):
Magento\Backend\Model\Locale\Manager->getUserInterfaceLocale()\n#2
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/framework/Locale/Resolver.php(65):
Magento\Backend\Model\Locale\Resolver->setLocale(NULL)\n#3
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/module-backend/Model/Locale/Resolver.php(60):
Magento\Framework\Locale\Resolver->__construct(Object(Magento\Framework\App\Config\Interceptor),
'general/locale/...', 'store', NULL)\n#4
/var/www/vhosts/websitename.com/httpdocs/vendor/magento/framework/ObjectManager/Factory/Abst...\n'
Can anyone suggest a way to resolve this as I cannot currently get into the backend of My site.
It seems that this was being caused by a vendor extenion called "Moogento Pickpack". Disabling this extension seems to have caused the issue to stop for the moment.
I will get in touch with the extension vendor and try to find out exactly what was causing the problem.
Update:
We have now updated Moogento Pickpack to a new version and upgraded to Magento 2.3.2. The error here is no longer occuring.

codeigniter Fatal error while calling a function menu from application/core/MY_Controller.php

I am getting this error for a small module that I am trying to develop:
Fatal error: Call to undefined method car_booking::getMenu() in
/var/www/html/mis_mishra/application/core/MY_Controller.php on line 67
The same is working fine for other module. I have checked from my side that the case is ok, module is available menu is coming perfectly alright when the module start. unable to trace the reason.
How can I solve this error?

Upgrade Magento 1.8 to 1.9 - Fatal error: Call to a member function getReadConnection()

I am trying to upgrade our Magento 1.8.0.0 to 1.9.2.1.
I copied the db to another table so I could do a test run first.
I uploaded 1.9 files to ourdomain.com/upgrade, then copied every extra installed module.
In our database I changed the base secure and unsecure url to ourdomain.com/upgrade.
Now when I go to ourdomain.com/upgrade I get this error:
Fatal error: Call to a member function getReadConnection() on a non-object in /home/domains/ourdomain.com/public_html/upgrade/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php on line 134
I have pasted this above line 134: echo get_class($this);exit;
and now have this:
Mage_Core_Model_Resource_Website_Collection
Does anybody have an idea what I am doing wrong?
I suggest that before the line
$this->setConnection($this->getResource()->getReadConnection());
put
if(!is_object($this->getResource())){
var_dump($this -> _resourceModel);die();
}
to find out which resouce model generates your problem.
gl & hf
p.s. I think it's going to be the sales/order ;), I have the same problem with it.

Magento what is a fatal error call to a member function? and how do I edit Controller.php

I've have had a good ole search on here to replicate an error I've been receiving in my Magento 1.9 installation (there are a few related posts, but nothing specific)
With my error logs turned on in index.php I receive the following error, in my browser, when trying to add/edit admin users in the backend:
Fatal error: Call to a member function setData() on a non-object in /hsphere/local/home/my-site-user/my-site/designs/app/code/core/Mage/Adminhtml/controllers/Permissions/UserController.php on line 93
Line 93 is:
->setData('action', $this->getUrl('*/permissions_user/save'));
I would be grateful if anybody could point me in the right direction to solve this issue!
Best wishes
David

Categories