Title: Problem with global wpdb? WordPress lose data/query
Last modified: August 19, 2016

---

# Problem with global wpdb? WordPress lose data/query

 *  [sebak_pl](https://wordpress.org/support/users/sebak_pl/)
 * (@sebak_pl)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/problem-with-global-wpdb-wordpress-lose-dataquery/)
 * Hi,
    I have problem with w3.0, whose i never had with others version. Exactly
   sometimes wordpress lose query and didn’t get data from database (not all, i 
   have multiple loops on one home/page, and sometimes is ok and sometimes one of
   this query not running – most in the header). I run it on my localhost (newest
   Xampp). What worse I don’t have any ideas why problem occure, i can only suspect
   that its problem with global wpdb var but i’m only beginner programer. To brighten
   problem i attached two print screen.
 * Secondly, others maybe not bug but problem is that when i use get_the_post_thumbnail()
   function and i set width to 150px core load image post thumb with size 150×150
   which is in most case cut off, but when i set 149 px on width it get image 150px
   on width and well get height but not cutted off.
 * screenshot
    [http://img19.imageshack.us/i/bugnvg.png/](http://img19.imageshack.us/i/bugnvg.png/)
   [http://img132.imageshack.us/i/bug2l.png/](http://img132.imageshack.us/i/bug2l.png/)
   [http://img139.imageshack.us/i/withoutbug.png/](http://img139.imageshack.us/i/withoutbug.png/)
   [http://pastebin.com/0Z0QZwn0](http://pastebin.com/0Z0QZwn0) Cheers

Viewing 1 replies (of 1 total)

 *  Thread Starter [sebak_pl](https://wordpress.org/support/users/sebak_pl/)
 * (@sebak_pl)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/problem-with-global-wpdb-wordpress-lose-dataquery/#post-1567141)
 * one more file with wpdb data when error occure and when everything is ok
    [http://pastebin.com/xgYFEUJ7](http://pastebin.com/xgYFEUJ7)
 * interesting is one of array record:
    [show_errors] => [suppress_errors] => [last_error]
   => Error on delete of ‘C:\xampp\xampp\tmp\#sql300_145_6.MYI’ (Errcode: 13) [num_queries]

Viewing 1 replies (of 1 total)

The topic ‘Problem with global wpdb? WordPress lose data/query’ is closed to new
replies.

## Tags

 * [global wpdb](https://wordpress.org/support/topic-tag/global-wpdb/)
 * [query](https://wordpress.org/support/topic-tag/query/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [sebak_pl](https://wordpress.org/support/users/sebak_pl/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/problem-with-global-wpdb-wordpress-lose-dataquery/#post-1567141)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
