Quantcast
Channel: Topic Tag: Database Error | WordPress.org
Viewing all 631 articles
Browse latest View live

karencchow on "Changed phpmyadmin and Site is gone (Error establishing database connection)"

$
0
0

Hi, I am completely new to website building and not familiar with code.

I had trouble getting my pages (other than the homepage) to display, kept getting a 404 error.

I asked for help from a (slightly more experienced) friend, and he managed to get my pages up by changing my permalink settings back to default (I was using a "custom" structure). Then he said to refresh the mySQL database, so we went into wp_options on phpmyadmin (via godaddy.com).

I deleted my siteURL under the "BROWSE" tab of wp_options, but this took the site down. I reversed the deletion (typing my siteURL back in as before) but the site didn't come back up. Now, I get an "Error establishing database connection" message. I checked the screenshots I took before deleting this one thing, and couldn't see what else had changed.

Why isn't my site up again? How do I fix it?

I have searched the forum and tried some fixes, including "disabling plugins then changing permalink structure settings via phpmyadmin" but nothing works. I did not back my database up :(


doctore on "[Plugin: OSE Firewall™] CDbException Error after updating to 2.02"

$
0
0

Hi OSE Team,

after updating to version 2.02 I have a problem. I have tried uninstalling and reinstalling the ose plugin but the error is still present.

I hope that you can let me know if there is a solution to the problem.

The site is not accessible, and the following error message appears on the website "CDbException":

CDbCommand failed to execute the SQL statement: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'usr_web71_1.wp_osefirewall_aclipmap' doesn't exist. The SQL statement executed was: SELECT id, status FROM wp_osefirewall_aclipmap WHERE ip32_start = 1558215620

529         {
530             if($this->_connection->enableProfiling)
531                 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
532
533             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
534             $message=$e->getMessage();
535             Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
536                 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
537
538             if(YII_DEBUG)
539                 $message.='. The SQL statement executed was: '.$this->getText().$par;
540 <strong>
541             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',</strong>
542                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
543         }
544     }

[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

http://wordpress.org/plugins/ose-firewall/

HeruLutalo on "New wordpress installation on localhost"

$
0
0

I've trying to install wordpress on my pc running window 7 and using wampserver v2 and after imputing my username and password for the last step in the installation I come to a blank screen with the wordpress logo that leads to the wordpress.org and it stays on there. If I refresh it ask me to repair the database once i do that I get this message at the bottom of the page

wp_posts: Table 'ladata.wp_posts' doesn't exist
wp_options: Table 'ladata.wp_options' doesn't exist
wp_postmeta: Table 'ladata.wp_postmeta' doesn't exist

Bjedd on "[Plugin: ShortCodes UI] 1.9.7 Error"

$
0
0

Unfortunately, I am getting this error with this incredibly great plugin on the new version 1.9.7.

"WordPress database error: [Unknown column 'wp_posts.post_type' in 'where clause'] SELECT id FROM wp2013posts WHERE 1=1 AND wp_posts.post_type = 'ba_sh' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC"

Downgraded back to 1.9.6 and everything is back to normal.

http://wordpress.org/plugins/shortcodes-ui/

mcofa79 on "Database Error (I know)"

$
0
0

So, I have been getting a "database error" problem on my site, and I have been searching through the forums for a thread that matches my issues, but I haven't found any.

I run a blog (replacementlevelredsox.com) which gets about 500-1000 hits per day. It's hosted through dreamhost. I had been running it on a shared server, but it got very slow during high traffic periods (during baseball games, basically), so I switched to a VPS. On the VPS, speed has been wonderful, but I started getting occasional and now regular "error establishing a database connection."

I am running W3 Total Cache and I have been clearing out post revisions and other extra crap from the database. I am running several other plugins, but I have tried deactivating and activating them and nothing has prevented the database errors problem. I did run a performance check on the plugins and cleared out those that were eating a lot of RAM, those that remains don't appear to be creating the problem.

I went into the MySQL side of the database and found very high numbers of "handler_read_rnd_next" and "select_full_join", among others. MySQL said that was related to having too many tables without an index, and some people on the internet said was related to having permalinks read as just /%postname%/, which apparently prevents indexing somehow. So I have switched the permalink structure as well.

None of these changes have stopped the regular database errors. Any help you can offer would be greatly appreciated.

WordpMoon12 on "Wordpress Database error and repair"

$
0
0

I have had the same problem twice now inside 1 month.
Randomly I get the "Error establishing Database connection" message.
And when I go to my WP backend, I have the option to click "repair the database" button that fixes the problem.

On the Database Repair page it still says:

Some database problems could not be repaired...
wp_users: 4 clients are using or haven't closed the table properly
wp_usermeta: 4 clients are using or haven't closed the table properly
wp_posts: 4 clients are using or haven't closed the table properly
wp_comments: 4 clients are using or haven't closed the table properly
wp_options: Table is marked as crashed
wp_postmeta: 4 clients are using or haven't closed the table properly
wp_terms: 4 clients are using or haven't closed the table properly
wp_term_taxonomy: 4 clients are using or haven't closed the table properly
wp_term_relationships: 4 clients are using or haven't closed the table properly
wp_commentmeta: 4 clients are using or haven't closed the table properly

Is there something I can do to fix these problems??
My Wordpress is working fine now but I am sure that eventually I will get that "Error Establishing Database connection" message again.

Gaia Clary on "[Plugin: Relevanssi - A Better Search] i suspect there is a typo in search.php"

$
0
0

I have seen errors during database access when i tried to filter by category. The error shows up in this SELECT statement:

SELECT *, title * 5 + content + comment * 0.75 + tag * 0.75 + link * 0 + author + category * 0.75 + excerpt + taxonomy + customfield + mysqlcolumn AS tf \n\t\t\t\t\t FROM wp_relevanssi WHERE (term LIKE '%cylinder' OR term LIKE 'cylinder%') AND doc IN (\n\t\t\t\t\t\t\tSELECT ID FROM wp_posts WHERE 1=1 \n\t\t\t\t\t\t\tAND (\n\t\t\t\t\t\t\t\tSELECT COUNT(1) \n\t\t\t\t\t\t\t\tFROM \n\t\t\t\t\t\t\t\tWHERE term_taxonomy_id IN (555,557) \n\t\t\t\t\t\t\t\tAND object_id = wp_posts.ID ) = 2\n\t\t\t\t\t\t\t) AND doc NOT IN (16442,16446,0) AND ((doc IN (SELECT DISTINCT(ID) FROM wp_posts\n\t\t\tWHERE post_type IN ('page'))) OR (doc = -1)) ORDER BY tf DESC LIMIT 500

I could track the problem down to

wp-content/plugins/relevanssi/lib/searh.py

I suspect the problem is caused by an unintended underscore. I searched for this string:

"FROM $wpdb->_term_relationships"

and removed the first underscore as follows:

"FROM $wpdb->term_relationships"

And now my queries work as expected (as far as i can tell at least). Maybe you want to check this and possibly fix it.

http://wordpress.org/plugins/relevanssi/

Mark on "Error establishing a database connection"

$
0
0

Hi guys,

Since updating to 3.6.1, we are at times experiencing database error messages on http://www.ultimateteam.co.uk, more specifically:

- Fatal error: Cannot use object of type W3_Config as array in /customers/9/a/e/ultimateteam.co.uk/httpd.www/forum/includes/functions.php on line 3883

and

- Error establishing a database connection

After speaking to my host, we established the problem was that the theme was not compatible with the latest version of Wordpress and that I should contact the theme creator. After contacting the theme creator, I was told that it was an easy fix and had to give over my Wordpress Admin login details and FTP login details (something which I was unwilling to do). I said that I would be happily guided through the process to fix the issue, but was told again to give over the details.

So my questions are; does anyone know how to fix this and also is this normal procedure having to give over these details for a fix?

Any help would be much appreciated..

Thanks,
Mark.


martinrice on "Database Problem?"

$
0
0

I recently noticed that a site I'm working on is intolerably slow, not when a visitor is looking at it, but when we're working on it.

I wrote my hosting service to see if there was some kind of problem. This is what he wrote back:
-----------------------------------
I found this in the logs which could be the reason why Wordpress is slow…

baggettfamilyfarm.com [Mon Nov 04 11:28:59 2013] [error] [client 76.164.194.74:53561] AH01215: WordPress database error MySQL server has gone away for query SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC LIMIT 0, 16 made by require('wp-blog-header.php'), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
---------------------------------------
He suggested I check with the forum to see if anyone could explain to me if this could be the reason for the slowness, what might be going on, and how I might be able to fix it.

Thanks for any help. At this point, it's almost impossible to work with the site.

Martin

Click-Factor on "[Plugin: EWWW Image Optimizer] WordPress database error"

$
0
0

Hello I'm getting this type of error
WordPress database error Table 'infograp_igmmast.igm_MeEgZ3cJfH_ewwwio_images' doesn't exist for query SELECT id FROM igm_MeEgZ3cJfH_ewwwio_images WHERE path = '/home/infograp/public_html//wp-content/uploads/igm-Avatar-75-60161_74x74.jpg' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/TheStyle/index.php'), get_footer, locate_template, load_template, require_once('/themes/IGMstyle/footer.php'), dynamic_sidebar, call_user_func_array, WP_Widget->display_callback, AboutMeWidget->widget, et_new_thumb_resize, et_resize_image, WP_Image_Editor_GD->save, EWWWIO_GD_Editor->_save, ewww_image_optimizer_aux_images_loop

Can you help me with this?

http://wordpress.org/plugins/ewww-image-optimizer/

simco3 on "Unable to Connect to DataBase"

$
0
0

I was unable to login to my wp-admin and used the "lost password" feature but did not receive the email. The I went into the datebase via phpmyadmin through godaddy and changed the password. Now I can not connect to the wp-admin page to login. First I was getting a http 500 and after removing the .htaccess file and redoing my steps in phpmyadmin, I now get a 404 error.

Can someone please advise me on how I might fix this?

LordLiverpool on "Error establishing connection to database"

$
0
0

Hello WordPress World

When I tried navigating to my website I got the dreaded:

Error establishing connection to database

When I tried navigating to my admin login http://www.website/wp-admin I got

One or more database tables are unavailable. The database may need to be repaired.

So I google the problem and decided to follow the instructions in this great article:

http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/

As instructed I added the following line of code to wp-config.php

define('WP_ALLOW_REPAIR', true);

My website is back up and running however the output of repair.php was

Some database problems could not be repaired. Please copy-and-paste the following list of errors to the WordPress support forums to get additional assistance.

wp_posts: 1 client is using or hasn't closed the table properly
wp_options: Table is marked as crashed

This is the 2nd time in the last 2 weeks I've had to repair my database this way.

2 questions:

1. What is the underlying cause?

2. How do I resolve the exceptions reported above that repair.php was unable to fix?

Cheers

Hugh on "[Plugin: Custom CSV Export Plugin] Initialization Error"

$
0
0

I want to tank you for making this plugin. Conceptually this has been the missing component in a lot of my workflows.

The down side is that I have to report that I get a "database not found" error when I try and initialize the plugin. I run my DB with a non-default prefix on the tables. Normally this is not a problem with plugins. But this is the only thing I can think of, off hand.

http://wordpress.org/plugins/custom-csv-exporter/

ecros on "[Plugin: WP Bulletin Board] Automated Links Problem?"

$
0
0

I'm getting the following error at the top of each post:

WordPress database error: [Table 'sfgt_us.wp_zuwbn9_automated_links' doesn't exist]
SELECT id,link,keywords FROM wp_zuwbn9_automated_links

Not sure what it is suppose to be doing. Help?

http://wordpress.org/plugins/wp-bulletin-board/

megame1224 on "Installed but not functioning"

$
0
0

What went wrong with my installation?

I got this series of 'wordpress database error: [table'myusername.wp_options' doesn't exists]
above this message:
SUCCESS!
Wordpress has been installed! Were you expecting more steps? Sorry to disappoint you...then when clicking the login button It went back to the page where I was about to install WP.

Again, what went wrong? I am in an online multimedia course and the school provided all the database info.


darkban on "[Plugin: Achievements for WordPress] Database error"

$
0
0

Hi Paul,

Your plugin is really great and it works better than the ones I've checked (and there are a few).

I have an error that persists and I don't really know what it's about. it says:

WordPress database error: [Unknown column 'uid' in 'where clause']
SELECT * FROM wp_achievements WHERE uid = 1 AND points != '' AND points != 0 ORDER BY id DESC LIMIT 5

Do you know what is it about? how can i fix it?

Many thanks in advance,
Lior

http://wordpress.org/plugins/achievements/

reztt on "Database error after installing popular posts.."

ablears on "[Plugin: Google Analytics for WordPress] WP e-Commerce tracking causing database error"

$
0
0

Hello

It doesn't look like this plugin is being actively supported here but it's worth a shot.

I am using WP e-Commerce and have activated the ecommerce tracking section of the plugin.

I am seeing the following database error in my apache error logs:

WordPress database error Table 'xxxxxxxx.wp_wpsc_productmeta' doesn't exist for query SELECT meta_value FROM wp_wpsc_productmeta WHERE meta_key = 'sku' AND product_id = '906' LIMIT 1 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/xxxxxxx/page.php'), get_footer, locate_template, load_template, require_once('/themes/xxxxxxx/footer.php'), yoast_analytics, GA_Filter->spool_analytics, GA_Filter->wpec_transaction_tracking

So it seems the plugin is looking for a database table that doesn't exist.

http://wordpress.org/plugins/google-analytics-for-wordpress/

primasilva on "Repair Database - Unknown Error?"

$
0
0

Sooo I'm trying to move my WordPress Site and point to a new DB. I directed wp-config to the new host and the site told me that it needed to repair my DB, so I told it to go ahead. Then I got this page:

The wp_users table is not okay. It is reporting the following error: WordPress will attempt to repair this table…
Failed to repair the wp_users table. Error:

... for all the tables. The end summary box says:

wp_users:
wp_usermeta:
wp_posts:
wp_comments:
wp_links:
wp_options:
wp_postmeta:
wp_terms:
wp_term_taxonomy:
wp_term_relationships:
wp_commentmeta:

Alexander S. Kunz on "[Plugin: Jetpack by WordPress.com] [an error occurred while processing this directive] after publishing a post"

$
0
0

Hello,

I can't exactly say when this started but for a couple of days now, when I click on "Publish" I get an empty screen with the message "[an error occurred while processing this directive]".

The post publishes fine, and Publicize to my two connected services (Facebook and Twitter) seems to work fine as well. My site works fine otherwise too (at least as far as I can see!).

I looked into the error_log on my site and found this entry (I replaced the 10-character string with XXXXXXXXXX since I'm not sure what it is and if it could be a security issue to post it here).

[10-Dec-2013 18:42:27 UTC] WordPress database error Duplicate entry 'jetpack_nonce_1386700934_XXXXXXXXXX' for key 'option_name' for query INSERT INTO wp_options (option_name, option_value, autoload) VALUES ('jetpack_nonce_1386700934_XXXXXXXXXX', '1386700947', 'no') made by do_action('login_form_jetpack_json_api_authorization'), call_user_func_array, Jetpack->login_form_json_api_authorization, Jetpack->verify_json_api_authorization_request, Jetpack->add_nonce

So it would appear the error has something to do with Jetpack, but this error message leaves me scratching my head - I'm not an expert.

Any help solving the problem is appreciated, thanks!
Alexander.

http://wordpress.org/plugins/jetpack/

Viewing all 631 articles
Browse latest View live