Aranworld
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get_col returning empty result on remote serverI finally figured it out. APC caching was turned on, which is normally good, but it meant that the modifications I was making to the page template were just not appearing on the website. After temporarily disabling apc caching, everything was back to normal again.
Forum: Fixing WordPress
In reply to: get_col returning empty result on remote serverI think this might be related to my current host. I am using GoDaddy.
It appears that I am unable to access the $wpdb object. No attempt at connecting to it are working.
Forum: Fixing WordPress
In reply to: get_col returning empty result on remote serverYou know it seems like something has been disabled in my WordPress installation, because when I do this:
global $wpdb; $result=$wpdb->query( "SELECT * FROM wp_posts LIMIT 1" ); echo $wpdb->func_call;On my local server I see this expecte result:
$db->query("SELECT * FROM wp_posts LIMIT 1")On my remote server absolutely nothing gets echoed to the screen.
Forum: Fixing WordPress
In reply to: get_col returning empty result on remote serverNo errors are being displayed when I do show_errors();
Even when I do a very simple query like this:
$first_post=$wpdb->query( "SELECT * FROM wp_posts LIMIT 1" );I get an empty result. Is it possible that the query functions have been disabled on my remote server?