Hello,
I’m not looking for assistance, I’m merely reporting that as of WordPress 4.7 I’m seeing this error in multiple places:
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 ')' at line 1]
SELECT tr.term_taxonomy_id FROM wp_term_relationships AS tr INNER JOIN wp_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tr.object_id IN (5946) AND tt.taxonomy IN ()
It was a useful plugin – if it gets fixed eventually, I’ll potentially re-activate.
Thanks,
Matt
]]>Hi,
I’d like to add to the bottom of my pages and tags listed using your excellent page tagging plugin.
I’m assuming the plugin doesn’t do that and I need to add some code to show the tags on the ‘render page’ php page in the theme I’m using.
Can you confirm thats correct, and if possible also confirm that I can use the same code we currently have on our posts to display the relevent tags.
Many thanks!
Alex Furr
]]>Hi, after activation I wasn’t able to tag my pages. I get a message: “Sorry, no posts matched your criteria”. I am using the theme Kaboodle. I re-installed the plug-in twice. Any suggestions? Thank you. Click on any tags and you will see the problem. https://freedommobilesolutions.com/
]]>Page Tagger is not working in WP 3.5. Any idea when an update will be out?
]]>Hi I have added your plugin and added a tag to a page and then conducted a search using the standard search widget in WordPress, but the page does not return a result in the search using the search tag term – can you help?
]]>Hi,
I#m not sure, but on my WordPress installation the line 51 in page-tagger.php: “$wp_version = floatval(get_bloginfo(‘version’));” changes $wp_version globally to a float. Other plugins have issues with this.
Am I right?
Best
Tino
After installation on wp 3.2.1, none of the pages (in edit mode) show the tags option. Is there some additional setting that must be changed to enable it?
]]>100+ plugins and this caused me the most trouble. I had to manually disable it via ftp.
Database connection error.
]]>This plugin works fine – if you only use posts and pages.
If you also use a custom post type with tag-support (taxonomy: post_tag
), the plugin breaks the process of updating the correct count of tags in database so other functionalities, e.g. Tag Clouds, get unexpected and wrong results.
The plugin overrides the default tag count update callback _update_post_term_count
of taxonomy post_tag
with a hardcoded sql-statement with only post types post
and page
so any other post type will not be updated.
Fix for Page Tagger 0.3.6, at end of file page-tagger-class.php
Old, only 2 hardcoded post_types:
function _update_post_term_count( $terms )
{
global $wpdb;
foreach ( (array) $terms as $term ) {
$count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships, $wpdb->posts WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id AND (post_type = 'post' OR post_type = 'page') AND term_taxonomy_id = %d", $term ) );
$wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
}
}
New, add also custom post types to SELECT statement:
function _update_post_term_count( $terms )
{
global $wpdb;
foreach ( (array) $terms as $term ) {
$count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships, $wpdb->posts WHERE $wpdb->posts.ID = $wpdb->term_relationships.object_id AND (post_type = 'post' OR post_type = 'page'" . $this->_get_custom_post_types_sql() . ") AND term_taxonomy_id = %d", $term ) );
$wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );
}
}
/* Hack for custom post types support */
function _get_custom_post_types_sql() {
$sql = '';
$cpt_arr = array();
$args = array(
'public' => true,
'_builtin' => false,
'taxonomies' => array('post_tag') // taxonomies actually not used, bug wp 3.2.1
);
$post_types = get_post_types($args, 'names');
foreach ($post_types as $post_type ) {
$cpt_arr[] = "post_type = '$post_type'";
}
if ($cpt_arr) {
$sql = ' OR ' . implode(' OR ', $cpt_arr);
}
return $sql;
}
]]>
Not sure why this is occuring but the page menu disappears when I view a list of tags e.g. https://www.openeye.net/tag/analog. It only happens when the plugin is enabled.
With Menu (plugin off)
https://pastebin.com/gPHUAVAW
Without Menu (plugin on)
https://pastebin.com/vfcuHNvj
Any thoughts on what could cause this?
]]>