Forum Replies Created

Viewing 12 replies - 31 through 42 (of 42 total)
  • Plugin Author brianjohnsondesign

    (@brianjohnsondesign)

    Could you share the video URLs you are seeing the error with?

    Currently, I know some of the shortened YouTube urls don’t work (like youtu.be/ID). If you run in to that, you can just go to YouTube with that link, and it will bring you to the regular page and URL. Copy that one in!

    We’ll be looking in to including those as well so that you don’t need to do anything else.

    Thread Starter brianjohnsondesign

    (@brianjohnsondesign)

    That all makes sense, which is why it’s odd that there’s an error.

    I have sent you an email at that address for testing.

    We’re exploring other solutions to avoid having to select a template and will hopefully have some luck there, but I’d still be curious to know what the issue here was. Being the number 1 or 2 theme in the World, I’m likely not the only one with this issue!

    Thread Starter brianjohnsondesign

    (@brianjohnsondesign)

    I agree with you, but in my experience when the developers of a plugin show that it works fine in other circumstances, but breaks in conjunction with a 3rd-party plugin, they blame that plugin and will not delve deeper.

    They proved that on any other custom post type, you could select the specific page template and it had no issues saving or displaying.

    If it was on the recipes post type with your plugin, it couldn’t save (from within Cornerstone) and the console generated the error already mentioned.

    I did some extensive digging and found the following information, which I will explain.

    Let me lead by saying that if your plugin does anything strange with the default WordPress template functionality, then it is almost certainly to blame. And I know that it does, because I’ve tried to override templates and it behaves very strangely.

    Here is why that is the case.

    I found that the error itself is initially generated by cornerstone\includes\classes\content\class-content.php, lines 111-113, which are:

      if ( is_wp_error( $settings ) ) {
          throw new Exception( 'Error saving content settings: ' . $settings->get_error_message() );
        }

    So Cornerstone displayed the error, however it is simply relaying what is_wp_error gave it, which is a core WordPress function. (Meaning that the error came from WordPress, not Cornerstone) Digging deeper, I found the specific WordPress core file responsible for generating the error “Invalid Page Template”. The file is wp-includes\post.php, and lines 3411-3422 are responsible, which are:

    `if ( ! empty( $postarr[‘page_template’] ) ) {
    $post->page_template = $postarr[‘page_template’];
    $page_templates = wp_get_theme()->get_page_templates( $post );
    if ( ‘default’ != $postarr[‘page_template’] && ! isset( $page_templates[ $postarr[‘page_template’] ] ) ) {
    if ( $wp_error ) {
    return new WP_Error( ‘invalid_page_template’, __( ‘Invalid page template.’ ) );
    }
    update_post_meta( $post_ID, ‘_wp_page_template’, ‘default’ );
    } else {
    update_post_meta( $post_ID, ‘_wp_page_template’, $postarr[‘page_template’] );
    }
    }`

    Nothing jumped out at me from that, so I couldn’t tell why the error is coming.

    Digging in to the database, I found that these posts have a row in wp_postmeta whose meta_key is “_wp_page_template” and the value, in this instance, is “template-layout-full-width.php”.

    Those values are all correct, so why would it be reporting an error?

    Is there some way we could narrow this down or dig deeper to figure out what’s happening? How exactly does your plugin alter the template functionality? If it literally just appends its own or manually manipulates it, then that would likely be where the problem lies.

    • This reply was modified 7 years, 1 month ago by brianjohnsondesign. Reason: Formatting code
    Thread Starter brianjohnsondesign

    (@brianjohnsondesign)

    Yes, I worked with Themeco (X Theme authors) and they ran some tests and decided it was 100% your plugin.

    I’m not having any issues with any other posts or even custom post types; just Recipes!

    Is there some other way I can eliminate the sidebar, or otherwise select the overall page template?

    Plugin Author brianjohnsondesign

    (@brianjohnsondesign)

    It’s not currently a planned update but that’s a great idea. We will look in to that!

    Plugin Author brianjohnsondesign

    (@brianjohnsondesign)

    I’m glad you like it, Anderie! That’s basically all I do with it as well ??

    Just added Vimeo support as well.

    brianjohnsondesign

    (@brianjohnsondesign)

    Confirmed for both! The plugin doesn’t work on 4.6.1, but disabling javascript does appear to allow it to work. Bonus: use “select all” before you disable javascript, and then you don’t have to manually check anything!

    Plugin Author brianjohnsondesign

    (@brianjohnsondesign)

    Good idea! I’m going to try and get a new version out there within the next few months and add a few new features, including that one!

    Still happening for me with BackUpWordPress 3.2.4 and WP 4.1.1.

    Enabled support and emailed support about it.

    Also, when I click “Support” after it’s enabled, nothing happens. Is that normal? I just copied the email address and emailed it directly.

    Thread Starter brianjohnsondesign

    (@brianjohnsondesign)

    Looks like at the time I got those errors, I may not have had the database connected. I was in the midst of troubleshooting the problems I was seeing.

    I am still having issues, though the errors are different now. But I no longer believe the problem is stemming from Wordfence, I think it may be from some security malfunction at the server level of my shared hosting account.

    Thread Starter brianjohnsondesign

    (@brianjohnsondesign)

    They were not so helpful! I have, however, gotten some error logs that might give some insight. Any ideas based on this? These same errors just repeat:

    [Tue Apr 07 21:45:20 2015] [9366652] [fcgid:warn] [client 75.72.194.xxx:55845] mod_fcgid: stderr: WordPress database error Table 'DatabaseName.wp_spec_comment_log' doesn't exist for query SELECT * FROM wp_spec_comment_log WHERE post_id = 107 AND ( date > '2015-04-08 00:25:11' ) OR ( date = '2015-04-08 00:25:11' AND id > 0 ) ORDER BY id ASC LIMIT 10; made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, spec_commenting->_init, spectacula_ajax->spectacula_ajax, call_user_func, spectacula_ajax->get_comment_changes, spectacula_ajax->grab_changedcomments_json, spec_comment_log->find, referer https://www.mydomain.com/classes/
    [Tue Apr 07 21:45:24 2015] [9366652] [fcgid:warn] [client 75.72.194.xxx:55845] mod_fcgid: stderr: WordPress database error Table 'DatabaseName.wp_wfConfig' doesn't exist for query select val from wp_wfConfig where name='disableConfigCaching' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/wordfence/wordfence.php'), wordfence::install_actions, wfCache::setupCaching, wfConfig::get, wfDB->querySingle, referer https://www.mydomain.com/parent-portal/
    [Tue Apr 07 21:45:24 2015] [9366652] [fcgid:warn] [client 75.72.194.xxx:55845] mod_fcgid: stderr: WordPress database error Table 'DatabaseName.wp_wfBlocksAdv' doesn't exist for query select id, blockType, blockString from wp_wfBlocksAdv made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, wordfence::veryFirstAction, wfLog->firewallBadIPs, wfDB->querySelect, referer https://www.mydomain.com/parent-portal/
    [Tue Apr 07 21:45:24 2015] [9366652] [fcgid:warn] [client 75.72.194.xxx:55845] mod_fcgid: stderr: WordPress database error Table 'DatabaseName.wp_wfBlocks' doesn't exist for query select blockedTime, reason from wp_wfBlocks where IP='1263059618' and (permanent=1 OR (blockedTime + '300' > unix_timestamp())) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), call_user_func_array, wordfence::veryFirstAction, wfLog->firewallBadIPs, wfDB->querySingleRec, referer https://www.mydomain.com/parent-portal/
    [Tue Apr 07 21:45:24 2015] [9366652] [fcgid:warn] [client 75.72.194.xxx:55845] mod_fcgid: stderr: WordPress database error Table 'DatabaseName.wp_users' doesn't exist for query SELECT * FROM wp_users WHERE user_login = 'wpusername' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), WP->init, wp_get_current_user, get_currentuserinfo, apply_filters('determine_current_user'), call_user_func_array, wp_validate_logged_in_cookie, wp_validate_auth_cookie, get_user_by, WP_User::get_data_by, referer https://www.mydomain.com/parent-portal/
    Thread Starter brianjohnsondesign

    (@brianjohnsondesign)

    Update: I deleted EVERYTHING, including the root folder for that domain. I removed the domain completely from my hosting. I then made a new folder and re-added the domain to the hosting account. Reinstalled WordPress, without including any of the files from the previous install, including theme and plugin files. Same issue.

    I’m at a loss! I really don’t know what to do. I’ll talk to hosting support I guess, but I’m not sure what they are going to do… What a pain!

Viewing 12 replies - 31 through 42 (of 42 total)