Wordpress database returns error 500 - database

I have upgraded wordpress to latest version 4.2. Wordpress got updated successfully, website is visible. But when i access mywebsite.com/wp-admin It asks me to update to the newest wordpress database, I click that update button and after a while it returns error 500 Internal Server Error.
I tried to rename plugin folder/ my theme as well but to no avail.
Please help me resolve this issue.
Thank you very much,

This was an extremely tricky one! I had to enter PhpMyAdmin and update manually the db_version in wp_options (http://prntscr.com/6yqm5l) with the version number from the latest wordpress download package (http://prntscr.com/6yqnew)
I hope this will help others who ever encounter this issue.
Thank you,

Related

Ionic error: Unfortunately app has stopped

I know this is a repeated question, but still I am posting the question as I unable to find the answer by all the method i check in the previous links. So, please help me instead of marking duplicate or voting down.
I have build an app with some cordova plugin including the push notification, but in some handsets its working good and in some its showing me as "Unfortunately appname has stopped" and the app is exits.
I have tried with some options like updating google play services, sdk update, adb logcat, keyboard uninstall and install, even platform also i have added again but no use.
Please save me from the bug.
Ultimately I have found the solution.
The error was the cordova-android#7.0.0 version.
I just updated my package from 7.0.0 to 7.1.0 and just re-installed all the plugins and its working pretty fine.
Now all the plugins even the push notifications are working good.
If anyone has the issue can just follow the same procedure and it will help you.

Drupal 7 - How can we debug SQL query errors

I am new to Drupal, and while interacting with database sometimes I get this error:
Error
The website encountered an unexpected error. Please try again later.
How do I debug this issue?
How can I can see which and what query is causing the issue?
Have a look at Drupal Devel Module. After enabling it, in the config page (Admin > Configuration > Development > Development Options) you should check the first option.
Checkbox that should be selected (sorry, mine is in Spanish!)
Then, you will see a list of queries to the database every time you load a page. The time needed to perform the query is also shown. This way you can identify which queries have a bad performance.
Hope it helps

Error after installing CakePhp in Production setup

guys could somebody please help me out? I have just installed cakephp in my localhost
then I'm already getting errors.
Please check this out for reference screenshot of entire page
There may be a table exist namely 'reservations' in your database for which code is not exist.
Sp please create ReservationController.php in Controller folder as well as its Model in 'Model' Folder.
If you want to access any methods of the RestrictionController you have to create view files accordingly.

Wordpress Error: Database Update Required

I'm currently working with a client right now that clicked to update a plugin on WordPress. He's unaware of what plugin it was that he updated because he's clicked update in the past for other plugins and they just updated, so he paid little attention to what it was he clicked.
His site is still up, but when I try to get into the back end using /wp-admin I'm hit with a message that states:
Database Update Required
WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.
The update process may take a little while, so please be patient.
Update Wordpress Database
When I click on the button that says "Update WordPress Database" it does nothing. The browser spins and then shows me a blank white page with Wordpress at the top. I'm at a loss because I can't even login, it doesn't give me the option.
Any thoughts on what is happening? Thanks a bunch in advance for the assistance.
This is due to a missmatch between the databases versions you said you are using in the settings.
Please follow this steps:
Go to /wp-include/ folder and open the version.php.
Find the value for $wp_db_version, and write it down.
Now, open your database, check in the table called wp_options
Find the db_version value:
SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version';
Those two values must be the same. Change it in the version.php file, not the database.
Source: http://wpquestions.com/question/showChrono/id/4151
Restarting php-fpm service helped me, it clears cache on restart
sudo service php5-fpm restart
Hope that helps some folks out there.
Try clearing your browser cache
The option db_upgraded isn’t getting set by the upgrade process.
Try this: go to /wp-admin/options.php. Fill the field db_upgraded with a 0 (zero). Hit Save Changes.
This is due to a missmatch between the databases versions you said you are using in the settings.
Please follow this steps:
Go to /wp-include/ folder and open the version.php.
Find the value for $wp_db_version, and write it down.
Open your database, check in the table called wp_options
Find the db_version value:
SELECT option_value FROM yourdatabase.wp_options WHERE option_name = 'db_version';
Those two values must be the same. Change it in the version.php file, not the database.

Scary looking warning: Warning: Attempt to assign property of non-object in ctools_block_content_type_render()

I keep getting this warning when I update a view in a panel (I used the Views and Panel modules to create a custom home-page design). We are building an intranet for our company and our IT department has linked our SharePoint network credentials to the Drupal site using LDAP (if this would explain the warning at all). Below is a screenshot, please advise!
The accepted answer is outdated -- see the hilariously-frustrated response by dddave to the users who keep trying to apply a patch that's already been committed.
http://drupal.org/node/1739718#comment-6613292
The updated answer is to download the latest -dev version of CTools, which has the proper patch already rolled into it.
A quick search of the Drupal forum shows that your Drupal version may just need a patch:
http://drupal.org/node/1739718
What version are you running? And did this error only appear after Drupal was linked to use LDAP/Sharepoint credentials? (ie - what was the triggering event? Has this been happening for a while? Did you update Drupal recently? Or are you brand new to this role and so seeing this for the first time?)

Resources