thierryyyyyyy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: I’m logged in but not “authorized” to go to admin panelI had only 2 plugins : akismet and a “google analytic” plugin (not really realated to login)
I change the wp_option->active_plugins to an empty string, the blog continued to run but I continued to be rejected from wp-admin …I already tried to overwrite all files by the wordpress-2.8 official files, still no success.
Actually, the only difference will a standart install, is that I tried to have “domain cookies”. I put these 2 lines in my wp-config.php files since a long time, and it worked I think since wordpress 2.6 or about (+/- 0.1).
define('SITECOOKIEPATH', '/' ); define('COOKIE_DOMAIN', '.2diabolos.com');I just tried without these lines, it works !
So now, I don’t have anymore the “domain cookies”…
Someone have such a functionality working ?By the way : I’m not sure about the need of “Set up secret keys in WordPress 2.6+” ( http://wordpress.org/support/topic/170987?replies=3 )
This is still needed in 2.8 ?
Forum: Fixing WordPress
In reply to: SQL error “AS p” when themes search for previous and next postI succeed in finding the source of the problem.
The plugin “Lost Level” (version 1.1.1) is not compatible anymore with wp 2.3 due to a not very clean call to the hook “query”.
He replaces the “$wpdb->posts” by “(wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id))” which is a non sens when the initial query use a “AS p” syntax.I corrected the problem, and I will release the correction on my blog : http://www.2diabolos.com/blog
Forum: Fixing WordPress
In reply to: SQL error “AS p” when themes search for previous and next postI searched more deeply in the code. The “previous_post_link” calls for “get_previous_post” which do the SQL query like that :
return @$wpdb->get_row("SELECT p.ID, p.post_title FROM $wpdb->posts AS p $join $where $sort");It means that “$wpdb->posts” is replace by “(wp_posts LEFT JOIN wp_postmeta as pl_wp_postmeta ON (wp_posts.ID = pl_wp_postmeta.post_id))”.
It does not make sense to me :Forum: Requests and Feedback
In reply to: WordPress as a CMSOn php.net, preg_match_all is normally well explained.
But regular expressions are, hmmm, how to say that … reserved to guys who can work a lot on a list of 10 characters…