Ben Rothman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Theme: edit page = white page after core updatestill just a white screen but with these errors in the console:
Uncaught TypeError: Cannot set property ServerSideRender of #<Object> which has only a getter
at Module.369 (server-side-render.min.js:1)
at n (server-side-render.min.js:1)
at wp.serverSideRender.0 (server-side-render.min.js:1)
at server-side-render.min.js:1
block-library.min.js:8 Uncaught TypeError: Object(…) is not a function
at Module.341 (block-library.min.js:8)
at n (block-library.min.js:1)
at wp.blockLibrary.0 (block-library.min.js:1)
at block-library.min.js:1
edit-post.min.js:6 Uncaught TypeError: Cannot read property ‘registerCoreBlocks’ of undefined
at Module.yo (edit-post.min.js:6)
at HTMLDocument.<anonymous> (post.php?post=2&action=edit:1864)
data.min.js:1 Uncaught (in promise) Error: Actions must be plain objects. Use custom middleware for async actions.
at v (data.min.js:1)
at data.min.js:1
at Object.dispatch (data.min.js:1)
at data.min.js:1
at w (data.min.js:1)
at Generator._invoke (data.min.js:1)
at Generator.t.<computed> [as next] (data.min.js:1)
at n (data.min.js:1)
at c (data.min.js:1)
at data.min.js:1
analysis-1251.min.js:21 Uncaught DOMException: Failed to execute ‘postMessage’ on ‘Worker’: function(t){var n=Xt(t),r=Qt(t),o=e(“core”).getEditedEntityRecord(“postType”,r,n);if(o){if(“function”==typeof o…<omitted>…”} could not be cloned.
at a.value (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/analysis-1251.min.js:21:1859866)
at a.value (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/analysis-1251.min.js:21:1859716)
at a.value (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/analysis-1251.min.js:21:1860220)
at t.default (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:5:106951)
at _.<anonymous> (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:5:118673)
at b (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:1:62253)
at x (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:1:62476)
at w (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:1:62366)
analysis-1251.min.js:21 Uncaught DOMException: Failed to execute ‘postMessage’ on ‘Worker’: function(t){var n=Xt(t),r=Qt(t),o=e(“core”).getEditedEntityRecord(“postType”,r,n);if(o){if(“function”==typeof o…<omitted>…”} could not be cloned.
at a.value (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/analysis-1251.min.js:21:1859866)
at a.value (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/analysis-1251.min.js:21:1859716)
at a.value (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/analysis-1251.min.js:21:1860220)
at t.default (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:5:106951)
at l.<anonymous> (https://www.benrothman.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:5:118673)
at b (https://www.asdf.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:1:62253)
at x (https://www.asdf.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:1:62476)
at w (https://www.asdf.org/wp-content/plugins/wordpress-seo/js/dist/wp-seo-post-scraper-1251.min.js:1:62366)
wp-seo-replacevar-plugin-1251.min.js:1 Uncaught TypeError: t.replace is not a function
at wp-seo-replacevar-plugin-1251.min.js:1
at t.exports (wp-seo-replacevar-plugin-1251.min.js:1)
at t.exports (wp-seo-replacevar-plugin-1251.min.js:1)
at f.replaceByStore (wp-seo-replacevar-plugin-1251.min.js:1)
at f.replaceVariables (wp-seo-replacevar-plugin-1251.min.js:1)
at wp-seo-post-scraper-1251.min.js:5
at t.exports (wp-seo-replacevar-plugin-1251.min.js:1)
at t.exports (wp-seo-replacevar-plugin-1251.min.js:1)
at e.value (wp-seo-post-scraper-1251.min.js:5)
at t.default (wp-seo-post-scraper-1251.min.js:5)btw I am able to edit pages np in other browsers so it is only in chrome (and yes I deactivated all browser extensions)
- This reply was modified 5 years, 4 months ago by Ben Rothman.
Forum: Developing with WordPress
In reply to: Navigation bar/Theme developmentis there a specific reason that you are not using the built-in navbar and just editing that to fit your needs?
Forum: Developing with WordPress
In reply to: coding custom blocks with MAMP“with MAMP” in the title should have been “On MAMP” lol but I figured it out, np.. It was just a misconfiguration of my package.json file.
Forum: Plugins
In reply to: [WPZOOM Social Feed Widget & Block] Stacking rather than side-by-sidemaybe I am not using the latest version of the theme because I do not see any other problems. I’ll use another plugin. Thanks anyway.
Forum: Plugins
In reply to: [WPZOOM Social Feed Widget & Block] Stacking rather than side-by-sideI am using the inspiro theme (also made by you guys) and I am trying to add the instagram widget to the homepage widget section.
Now when I add it nothing appears when I log out, but it appears normally when I am logged in:Logged in (the widget looks the way I want it to look): https://tinypic.com/r/x3vb52/9
Logged out (widget appears stacked and with weird numbers): https://tinypic.com/r/bfjpec/9
- This reply was modified 5 years, 11 months ago by Ben Rothman.
oh hey that is completely fine, obviously you have a lot to do! I knew it was a long shot that you would have time to help but I thought it was worth an ask, lol
thanks again for all your help! Ok, time to sift through all the theme code to find those errors, yay! ??
hmm, I am not trying to do anything special or extra in the theme with the customizer. As the name suggests the theme is just a blank theme (similar to underscores or something) but with a few styles already added like menus and stuff.) Rather than try to rewrite the whole theme I’m hoping that I can just overwrite a file or two of the theme with those from an existing and working theme. How do I find out which file(s) are causing the issue?
—-
wow ok I installed the theme on a local installation and there are a ton of errors… lol maybe my host was suppressing the errors or something idk but I tried to weave together different technologies for this theme a few years ago and now all that technology is out of date and incompatible so I have my work cut out for me, thanks again! (unless you want to help with fixing this cool blank theme that is designed to be easily customizable for clients.. it’s a cool project: https://github.com/brothman01/blankwhatever you want but I’d love your input!
- This reply was modified 6 years ago by Ben Rothman.
- This reply was modified 6 years ago by Ben Rothman.
- This reply was modified 6 years ago by Ben Rothman.
- This reply was modified 6 years ago by Ben Rothman.
Exhibit #1: Error Log
[22-Mar-2019 22:10:34 UTC] PHP Notice: Undefined index: deactivate in /home/client7982/public_html/wp-content/plugins/captcha-bank/captcha-bank.php on line 1507
disabling the captcha plugin has no effect. As long as I switch themes away from Blank (I am not censoring the name, that is a custom theme I made) I get no customizer errors.
Exhibit #2: Notices when Entering Troubleshooting Mode:
When switching the active theme to Blank, a site failure occurred. Because of this we reverted the theme to the one you used previously.
When enabling the plugin, wordpress-seo, a site failure occurred. Because of this the change was automatically reverted.
When enabling the plugin, smart-slider-3, a site failure occurred. Because of this the change was automatically reverted.
When enabling the plugin, smart-slider-3, a site failure occurred. Because of this the change was automatically reverted.
When switching the active theme to twentynineteen, a site failure occurred. Because of this we reverted the theme to the one you used previously.
troubleshooting mode activates the twentynineteen theme, idk why it says there was an error. Anyway, the evidence points to my theme interacting with the customizer as the problem. Since I made this theme to use for clients I want to know how I can fix this. Any ideas on what to fix and how?
Btw, thanks so much for spending this much time with me, I think we are almost at the end!
- This reply was modified 6 years ago by Ben Rothman.
- This reply was modified 6 years ago by Ben Rothman.
Oh, thanks! I did that and here is the error that prints when I save css:
[21-Mar-2019 22:14:15 UTC] PHP Notice: Undefined index: purge-log-entries in /home/client7982/public_html/wp-content/plugins/better-wp-security/core/lib/class-itsec-scheduler-cron.php on line 54
I see better-wp-security in there which is ithemes, and I am guessing disabling iThemes would “fix” this issue but I want to keep using the plugin. Could it be setting something to read-only that it shouldn’t be or some other setting?
- This reply was modified 6 years ago by Ben Rothman.
The code on the page you linked to and the code in that file are very different.
Below is what the current code looks like:
/** * Print JavaScript settings for preview frame. * * @since 3.4.0 */ public function customize_preview_settings() { $post_values = $this->unsanitized_post_values( array( 'exclude_changeset' => true ) ); $setting_validities = $this->validate_setting_values( $post_values ); $exported_setting_validities = array_map( array( $this, 'prepare_setting_validity_for_js' ), $setting_validities ); // Note that the REQUEST_URI is not passed into home_url() since this breaks subdirectory installations. $self_url = empty( $_SERVER['REQUEST_URI'] ) ? home_url( '/' ) : esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ); $state_query_params = array( 'customize_theme', 'customize_changeset_uuid', 'customize_messenger_channel', ); $self_url = remove_query_arg( $state_query_params, $self_url ); $allowed_urls = $this->get_allowed_urls(); $allowed_hosts = array(); foreach ( $allowed_urls as $allowed_url ) { $parsed = wp_parse_url( $allowed_url ); if ( empty( $parsed['host'] ) ) { continue; } $host = $parsed['host']; if ( ! empty( $parsed['port'] ) ) { $host .= ':' . $parsed['port']; } $allowed_hosts[] = $host; } $switched_locale = switch_to_locale( get_user_locale() ); $l10n = array( 'shiftClickToEdit' => __( 'Shift-click to edit this element.' ), 'linkUnpreviewable' => __( 'This link is not live-previewable.' ), 'formUnpreviewable' => __( 'This form is not live-previewable.' ), ); if ( $switched_locale ) { restore_previous_locale(); } $settings = array( 'changeset' => array( 'uuid' => $this->changeset_uuid(), 'autosaved' => $this->autosaved(), ), 'timeouts' => array( 'selectiveRefresh' => 250, 'keepAliveSend' => 1000, ), 'theme' => array( 'stylesheet' => $this->get_stylesheet(), 'active' => $this->is_theme_active(), ), 'url' => array( 'self' => $self_url, 'allowed' => array_map( 'esc_url_raw', $this->get_allowed_urls() ), 'allowedHosts' => array_unique( $allowed_hosts ), 'isCrossDomain' => $this->is_cross_domain(), ), 'channel' => $this->messenger_channel, 'activePanels' => array(), 'activeSections' => array(), 'activeControls' => array(), 'settingValidities' => $exported_setting_validities, 'nonce' => current_user_can( 'customize' ) ? $this->get_nonces() : array(), 'l10n' => $l10n, '_dirty' => array_keys( $post_values ), ); foreach ( $this->panels as $panel_id => $panel ) { if ( $panel->check_capabilities() ) { $settings['activePanels'][ $panel_id ] = $panel->active(); foreach ( $panel->sections as $section_id => $section ) { if ( $section->check_capabilities() ) { $settings['activeSections'][ $section_id ] = $section->active(); } } } } foreach ( $this->sections as $id => $section ) { if ( $section->check_capabilities() ) { $settings['activeSections'][ $id ] = $section->active(); } } foreach ( $this->controls as $id => $control ) { if ( $control->check_capabilities() ) { $settings['activeControls'][ $id ] = $control->active(); } } ?> <script type="text/javascript"> var _wpCustomizeSettings = <?php echo wp_json_encode( $settings ); ?>; _wpCustomizeSettings.values = {}; (function( v ) { <?php /* * Serialize settings separately from the initial _wpCustomizeSettings * serialization in order to avoid a peak memory usage spike. * @todo We may not even need to export the values at all since the pane syncs them anyway. */ foreach ( $this->settings as $id => $setting ) { if ( $setting->check_capabilities() ) { printf( "v[%s] = %s;\n", wp_json_encode( $id ), wp_json_encode( $setting->js_value() ) ); } } ?> })( _wpCustomizeSettings.values ); </script> <?php }
where do I put a console.log statement? (if that is the right thing to add. I’m not sure what to do here)
I installed that plugin, entered troubleshoot mode, disabled all plugins and changed themes to twentysixteen.
When I tried to publish additional css with the customizer I got the error, “Unable to save due to 1 invalid setting.” but there was nothing to click or any way to see what that invalid setting is. How do I check what the invalid setting is?
hmm,
the network pane shows 2 requests firing after I press ‘Publish’. Both requests are POST requests and both originate from admin-ajax.php. One has success:true in the JSON and the other has success:false.Forum: Plugins
In reply to: [WP-Post-Meta-Revisions] Not working for me (maybe too late)@jcollier according to trac this is still a valid plugin that the author will get back to soon: https://core.trac.www.ads-software.com/ticket/20564#comment:133 so I’m not sure what the next steps are, but I guess we should keep checking these forums!
Forum: Fixing WordPress
In reply to: [Gutenberg] Center align text in a column@gappiah I should have mentioned that the columns are custom html elements rather than text (how did you insert that image into a forum post? lol, I don’t see a way to do that)
Forum: Fixing WordPress
In reply to: unable to handle requesthey @penuel00, try deactivating all of your plugins and switching themes to see if there is still a problem. If deactivating all plugins and switching themes fixes the issue then the problem is in one of those things, if the problem is still there then we can move on to another test for a solution.