Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 08-06-2012, 11:03 AM
Lahori_Munda's Avatar
Contributing Member
 
Join Date: 07-02-10
Location: Pakistan
Posts: 87
iTrader: 0 / 0%
Having Problem In My Website

Hi,
Well i have very weried issue on my website and i didnt find the solution. It comes sometime on site. Let me share screenshots.



This is the source code screenshot.



I talk with my hosting company and they reply.

Quote:
Hi,

There wasn't a virus/malware anywhere in the code. This is from /home/munda/public_html/error_log:

[01-Aug-2012 15:04:51 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<strong>2</strong> AND file_permission != -2' at line 1 for query SELECT * FROM wp_downloads WHERE file_id = <strong>2</strong> AND file_permission != -2 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/LahoriMela/index.php'), include('/themes/LahoriMela/includes/defaultindex.php'), truncate_post, apply_filters('the_content'), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, download_shortcode, download_embedded, W3_Db->query

So there was an issue with one of the WordPress tables that was causing random characters to be displayed. I ran a MySQL repair & optimization via:

[root@server ~]# mysqlcheck -Aor

This seems to have corrected the issue. You'll want to speak with your developer as it seems your theme isn't properly terminating SQL queries and could be corrupting your tables.

Thanks,
This is my website www.lahorimela.com
Please help with this. Thanks
__________________
My Website: LaHoRiMeLa.cOm
 
Reply With Quote
  #2 (permalink)  
Old 08-06-2012, 02:17 PM
dmvictoria's Avatar
v7n Mentor
 
Join Date: 10-28-10
Location: Victoria BC, Canada
Posts: 591
iTrader: 0 / 0%
There may be a better answer to come along. But, from what I see it looks like some of your posts got corrupted upon insertion into the database, i.e. when you hit the publish button. You will probably have to delete those posts and make new ones.

You may be able to retrieve the content because of the way WP auto save (auto draft) works. Basically as you are creating your article the auto save saves it to the db just like the final published one, the only difference is the one that is flagged 'publish' is the one displayed. If you have access to your db, i.e. through phpMyAdmin, find the last auto saved version and just copy and paste it out and complete any minor finishing. The only condition where auto save wouldn't work is if you created the article in a different editor and just copied and pasted it into the WP editor and hit 'Publish' thus not giving the auto save enough time to do its job. If you do find that your auto saved article contains the same gibberish as well, this could be a clue to your issue.

As to what your issue is I don't know. But, like I said, there may be a better answer to come.

A few little things I can think of is:
- Make sure you are updating the the latest version of WP
- Maybe do some searches to see if anyone has had trouble with that theme
- Are you putting in strange characters in your post? (WP usually escapes such things on insertion, but you never know.)
- You could copy the data and structure to a new db, delete the old one and rename the new one to the old one's name. Might fix a bad db.
 
Reply With Quote
  #3 (permalink)  
Old 08-07-2012, 08:08 PM
Lahori_Munda's Avatar
Contributing Member
 
Join Date: 07-02-10
Location: Pakistan
Posts: 87
iTrader: 0 / 0%
Any other one who can help with that and thanks a lot dmvictoria for your kind reply.
__________________
My Website: LaHoRiMeLa.cOm
 
Reply With Quote
  #4 (permalink)  
Old 08-10-2012, 02:28 AM
JohnnyS's Avatar
Contributing Member
 
Join Date: 07-05-11
Location: philippines
Posts: 312
iTrader: 0 / 0%
it shouldn't be just a database issue because Wordpress does not save all of it's content in the database. there are physical template files.

this could be a charset issue..

create a .htaccess file or if there's already one since your using Wordpress you can just update it and try the following suggestions from this page..

http://www.w3.org/International/ques...ess-charset.en
 
Reply With Quote
  #5 (permalink)  
Old 08-18-2012, 06:18 AM
Lahori_Munda's Avatar
Contributing Member
 
Join Date: 07-02-10
Location: Pakistan
Posts: 87
iTrader: 0 / 0%
HI,
well i try and i notice that i have this problem in all my sites, that mean i having issue in my server. Coz my other webiste got this error and site working for a single time. I remove the all files and database but having still issue. Should i have to change my server or anything els?
__________________
My Website: LaHoRiMeLa.cOm
 
Reply With Quote
  #6 (permalink)  
Old 08-31-2012, 03:16 AM
Junior Member
 
Join Date: 08-29-12
Posts: 28
iTrader: 0 / 0%
this seems to be a problem with Apache and memory. Are you using any opcode accelerators for example APC?
 
Reply With Quote
  #7 (permalink)  
Old 08-31-2012, 06:25 AM
Junior Member
 
Join Date: 08-30-12
Location: Lisbon, Portugal
Posts: 3
iTrader: 0 / 0%
Hello,

This seems to be problem related with php output compression.

Please check if the following php settings are disabled: zlib.output_compression and output_handler

You could upload a phpinfo page and look for that.

If those settings are enabled, you should disable them in your php.ini, zlib.output_compression must be set to 0 and output_handler must be set to empty value.

Regards,
Jorge Oliveira.
 
Reply With Quote
  #8 (permalink)  
Old 09-06-2012, 07:23 PM
Junior Member
 
Join Date: 09-05-12
Posts: 27
iTrader: 0 / 0%
Hi,

Also try to disable APC cache. This is not a problem of wordpress. OR the language inside your database is something 'weird' (say Chinese) and the charset of your page is set to a wrong charset thus not showing the characters correctly.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Website Problem Please Help jhon321 Google Forum 7 04-13-2011 09:51 PM
Problem With Website alisha1988 SEO Forum 2 03-18-2011 02:29 AM
Website Problem website-design-seo SEO Forum 5 12-27-2010 04:04 AM
Problem in my website or problem in browser? speedo1234 Coding Forum 7 12-23-2008 12:41 PM
Problem with my one of website SEO_JamesBond Google Forum 10 01-05-2008 04:01 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 10:25 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.