Drupal failed after update - php

I just updated Drupal core from 7.4 to 7.26. After running update.php site stopped working – both public and admin part. When I load it fatal error occurs:
Fatal error: Call to undefined function _system_default_theme_features() in /[drupal_path]/includes/theme.inc on line 1422
and when I reload it another fatal error apperars:
Fatal error: Call to a member function getDirectoryPath() on a non-object in /[drupal_path]/modules/image/image.module on line 83
next reload – first error, one more – second. Also, second error is loading much faster.
And one more thing, after applaying update.php I got one failed, I don't know if this is connected:
media_gallery module
Update #7009
Failed: FieldException: Próba aktualizacji egzemplarza nieistniejącego pola media_gallery_media. w field_update_instance() (linia 557 z /[drupal_path]/modules/field/field.crud.inc).
which is something like:
Failed: FieldException: Attempt to update an instance of a nonexistent field media_gallery_media. in field_update_instance() (line 557 in /[drupal_path]/modules/field/field.crud.inc).
PHP Version 5.5.6
Any tips where the problem is? I was trying disabling some modules from db, but this did't help.

It's difficult to explain the reason and to provide a solution.
My attempt would be to copy the DB and the files on a neutral platform (local machine or so) and experiment with the update.php script.
My suspicion would be that media module needs also update since it's using the old URI function definition (call). Also try to update other modules that are working with files.
The update is quite big since 7.4 to 7.22 (years of improvement). Reading the change log would be helpful but not realistic.
Did you also cleared the cache? (via drush if the web interface not working - /?q=admin/config/development/performance)
Please don't forget to post the solution if you find one for other users with the same issue.

Related

Wordpress error: There has been a critical error on this website. Please check your site admin email inbox for instructions

I'm running a wordpress/woocommerce website running PHP7 on Windows IIS.
After clicking update plugins, I now get the following error when trying to do anything in the WP dashboard (the actual website still works fine, just not when logged in to WordPress):
Fatal error: require_once(): Failed opening required 'C:\inetpub(dir removed)\wordpress\wp-content\plugins\code-snippets/php/admin-menus/class-manage-menu.php' (include_path='.;C:\php\pear') in C:\inetpub(dir removed)\wordpress\wp-content\plugins\code-snippets\code-snippets.php on line 75
Line 75 of the code snippets file is:
/* Load the class */
require_once $class_path . "class-{$class_file}.php";
I tried the recovery email, but just got the message:
Recovery Mode not initialized.
I can't see that may be wrong - any ideas of next steps to try?
Thanks, Mark
I don't know why - but now the site appears to be working. It's as if WP "fixed itself" after a period of time (approx 30 minutes).
So if you get this error - try leaving it for a little while and see if it resolves itself. If anyone knows why/how it can do this, please say. Thanks, Mark

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.

Fatal error: Class 'CI_Controller' not found in H:\php2\htdocs\property\system\core\CodeIgniter.php on line 233

In codeigniter i have started one property related project for my client.
I am getting an error
Fatal error: Class 'CI_Controller' not found in H:\php2\htdocs\property\system\core\CodeIgniter.php on line 233 after i have complete some development.
I have really search it for many time in google and in stackoverflow but still didn't get solved.
Thanks in advance,
Well, m not sure but i guess it can happen because of changes in database settings.
codeigniter sometimes show this very weird behaviour that giving this fatal error "CI_Controller" not found even there's nothing wrong with the core files.
so- try debugging like this-
1)check your database seetings located at config/database.php
2)If it does'nt works, re-uploading the system files.
I hope this helps.
Check your database config in application/config/database.php it's one of the major time consuming error message I faced with CI. Because the error message was simply misleading. So, check the database config first.

Smarty error, catchable fatal error

I recently made a site for someone with Smarty, everything worked like it should. When I had to edit something today (~ 2 weeks after initial release) i deleted the smarty cache to update all pages, now the pages are not generated anymore, it only gives the following error:
Catchable fatal error: Argument 1 passed to _smarty_template_buffer::append_subtree() must be an instance of _smarty_parsetree, instance of _smarty_text given, called in /home/public_html/classes/Smarty/sysplugins/smarty_internal_templateparser.php on line 2167 and defined in /home/public_html/classes/Smarty/sysplugins/smarty_internal_parsetree.php on line 268
The weird thing is, after some page refreshes it randomly does generate the page without the error. I can't tell why this behaviour is happening.
The PHP version is 5.4.17
Can anyone help me with this problem?

Zend session_start gives Fatal error: Exception thrown without a stack frame in Unknown on line 0

When running a Zend application locally I get Fatal error: Exception thrown without a stack frame in Unknown on line 0, i traced that error to a line $startedCleanly = session_start();
I can't get through it, when I restart the server and reload the page I do not get the error, but on every other reload I get it, I looked into a php/tmp dir too see if there are any files, and as I see they aren't there. I think that session isn't written but when I try just a simple test.php file with session_start(); line, without zend framework, I see that there is a file created in that dir.
I really don't know where to go next.
Happens when your destructor or error handler throws an exception. That can happen for multiple reasons depending on your exact setup and method for session storage you're using. For example the session directory is not writeable or does not exist, database is not accessible or fields are invalid, redis does not respond, etc.
So, check your settings and look for something that would prevent saving the session data.
More elaborate description can be found here.
I know this post is old, but I've just figured out that I was getting "Fatal error: Exception thrown without a stack frame in Unknown on line 0" because my 'modified' and 'lifetime' columns were of type 'timestamp without time zone' when they should have been 'integer' (I'm using Postgres 9 BTW)
Hope this helps someone.
The problem could also be a disk full problem !!!

Categories