• Resolved prehealthshadowing

    (@prehealthshadowing)


    Hello again @javmah,

    Thanks for the recent update – it did resolve the issues we were having and I have re-enabled the plugin. I’m looking through my error logs and see a regular error occurring in php_errorlog. I’m not sure if it was there before, but it is happening often.

    WordPress database error Table ‘XXXXXXX.wp_postmeta’ doesn’t exist for query SELECT * FROM 5TO_posts INNER JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE wp_posts.post_type = ‘wpcf7_contact_form’ AND wp_postmeta.meta_key = ‘_form’

    I think I’ve resolved it locally by changing this line:
    $cf7Forms = $wpdb->get_results( “SELECT * FROM {$wpdb->prefix}posts INNER JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE wp_posts.post_type = ‘wpcf7_contact_form’ AND wp_postmeta.meta_key = ‘_form’ ” );

    to

    $cf7Forms = $wpdb->get_results( “SELECT * FROM {$wpdb->prefix}posts INNER JOIN {$wpdb->prefix}postmeta ON {$wpdb->prefix}posts.ID = {$wpdb->prefix}postmeta.post_id WHERE {$wpdb->prefix}posts.post_type = ‘wpcf7_contact_form’ AND {$wpdb->prefix}postmeta.meta_key = ‘_form’ ” );

    Can you confirm this fix, and patch if appropriate?

    Thanks again!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author javmah

    (@javmah)

    I appreciate your effort. I change the SQL prefix Please See the code. I didn’t change the version. regards

    Plugin Author javmah

    (@javmah)

    Could you please create a support ticket from the plugin contact page so that I can send you a pre-release version? Best Regards.

    Thread Starter prehealthshadowing

    (@prehealthshadowing)

    @javmah – I can’t find the spot you are referring to to file a ticket. I thought that is what the forum is for. Regardless, I don’t think its necessary to get a pre-release – I made the change locally and haven’t seen the issue since I made it. I’ll grab the next patch build you put out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SQL error in php_errorlog’ is closed to new replies.