Fatal Magento error fix generated after restore - php

My web host restored my magento installation after crash and since then I get error:
Fatal error: Class Magento_Db_Adapter_Pdo_Mysql contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Varien_Db_Adapter_Interface::insertIgnore, Varien_Db_Adapter_Interface::changeTableAutoIncrement) in /lib/Magento/Db/Adapter/Pdo/Mysql.php on line 35
How do I fix it?

Related

Wordpress site returning fatal error "Cannot redeclare wp_get_server_protocol() (previously declared in /home/...."

I have a wordpress site which is returning the following
Fatal error: Cannot redeclare wp_get_server_protocol() (previously declared in /home/wryl/public_html/wp-includes/load.php:16) in /home/wryl/public_html/wp-includes/load.php on line 21
It's not a site i have anything to do with normally but have been asked if i can fix this issue. I've attempted to re-upload clean wordpress files (wp-admin & wp-includes) and made sure all the permissions have been set correctly but still get the above error. I'm a little lost as to what to try next

Drupal - Fatal error sessionhandler

I am receiving following errors when I try to access pages and the site becomes inaccessible(error 500).
PHP Fatal error: Class Drupal\Core\Database\Statement contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\Core\Database\StatementInterface::fetchObject) in /projects/core/lib/Drupal/Core/Database/Statement.php on line 16
PHP Fatal error: Class Drupal\Core\Session\SessionHandler contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::read) in /projects/core/lib/Drupal/Core/Session/SessionHandler.php on line 15
Restarting server will solve the issue for a limited time. Just found it was a memory issue. changed the memory_limit to 128, 256 and 512 but really seems to have happen randomly while browsing my website
Apache/2.4.29, PHP 7.0.26
Hey just need to delete cache or run drupal cron. for more details, please go to following the link.
https://www.drupal.org/project/drupal/issues/2668564
Hope it will useful for you.

Fatal error when csrf_protection fail

I have enabled csrf_protection, and I don't know if it works as expected.
I added (automatically with form_open) on HTML forms the field csrf_test_name. But if I change the value (or remove it) I get Fatal Error:
Fatal error: Class 'CI_Controller' not found in /home/user/workspace-php/myprojectsystem/core/CodeIgniter.php on line 366
Fatal error: Class 'CI_Controller' not found in /home/user/workspace-php/myproject/system/core/CodeIgniter.php on line 366
I think it's supposed to fail on form validation, am I wrong?
EDIT
I forgot to say that I am using Modular Extensions - HMVC.

Function edited but still error in Prestashop

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?

CodeIgniter Database Session Error

When I try to execute any controller of my CodeIgniter project i receive this error:
Fatal error: Class CI_Session_files_driver contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::read) in D:\Git\crud-farm\system\libraries\Session\drivers\Session_files_driver.php on line 49
A PHP Error was encountered
Severity: Error
Message: Class CI_Session_files_driver contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (SessionHandlerInterface::read)
Filename: drivers/Session_files_driver.php
Line Number: 49
Backtrace:
I tried to replace CodeIgniter system files but it didn't work. The problem appears in all projects
Problem solved by restarting Apache.
I attach the url which saved me: http://forum.codeigniter.com/thread-64763.html
In my case i did the following
Restart apache
That's it!
The files in system should not be modified. My files were modified somehow and were throwing error. I resolved my problem as below.
Download fresh codeigniter and extract files
copy system files from fresh codeigniter into your project and overwrite the whole system folder.
This should fix your problem.

Categories