Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • This is an issue for me also.
    On a 100% fresh install 5.0.3 The only change was:
    WordPress Address (URL): https://example.com/wordpress
    Site Address (URL): https://example.com

    This triggers console errors when editing pages and post, here are some example errors I get in the console:

    • Failed to load resource: the server responded with a status of 403 (Forbidden) /wp-json/wp/v2/users/?who=authors&per_page=100&_locale=user:1
    • Uncaught (in promise) Error: [object Response] redux-routine.min.js?ver=3.0.3:1
    • Failed to load resource: the server responded with a status of 403 (Forbidden) /wp-json/wp/v2/taxonomies?per_page=100&context=edit&_locale=user:1

    If I then change the WordPress Address and Site Address so that they match again the errors go and saves work again.

    Hopefully they fix this in future updates. It’s back to Classic Editor for now.

    Sure thing
    I found that a XML variable was blank, when it was made into a php variable it was an empty object, like this.

    $color = $g['color'];
    var_dump($color);

    Returned object(SimpleXMLElement)#396 (0) { }
    So all i did was a simple shorthand if statement.
    This fixed my problem:

    $color = $g['color'] ? $g['color'] : '';

    Now the var_dump returns string(0) ""

    This was the line that was triggering the error

    update_post_meta( $post_id, 'color', $color );

    Hope this helps!

    I am also getting the same error:
    Fatal error: An iterator cannot be used with foreach by reference in /x/wp-includes/formatting.php on line 3896

    I am writing a custom importer from an xml feed.

    EDIT:
    Fixed my problem. one the the vars i was passing was an empty object.
    I thought it was a str. A quick if to swap the empty obj to a empty str fixed all problems.

    Forum: Plugins
    In reply to: W3TC – MFUNC in a loop
    kingafrojoe

    (@kingafrojoe)

    I found the solution. Only done some preliminary testing but seems to work.

    I had this code that would output prices.

    <!--mfunc <?php echo W3TC_DYNAMIC_SECURITY;?> -->
    get_price_fragment( get_the_ID() );
    <!--/mfunc <?php echo W3TC_DYNAMIC_SECURITY;?> -->

    get_the_ID() would stick as the first product in the loop.
    After much trial and error then a bit of luck I have found this to work.

    <!--mfunc <?php echo W3TC_DYNAMIC_SECURITY;?> -->
    get_price_fragment( <?php echo get_the_ID(); ?> );
    <!--/mfunc <?php echo W3TC_DYNAMIC_SECURITY;?> -->

    Basically echoing the get_the_ID() so it’s output by php not mfunc.

    Hope this helps!
    ??

    Forum: Plugins
    In reply to: W3TC – MFUNC in a loop
    kingafrojoe

    (@kingafrojoe)

    Hi dschiffner

    I have the same problem, did you ever get it solved?

    I think it’s to do with the global $post getting cached / not refreshed, with each loop.

    I am also suffering from this. I have several WP sites they are all doing the 404 error or looping at the login page…

    As it is across several sites I think maybe my host has changed something?

    I have found a post that said change all the Image Sizes to 0 then save. This will stop word press from resizing your images.

    Go to your Dashboard
    Go to Settings
    Go to Media
    Clear any entries under the Image Sizes menu (set to 0)
    Press Save Changes

    https://electrokami.com/coding/wordpress-disable-automatic-image-thumbnail-resizing/

    I have not tested this for myself yet.

    hope this helps ??

    I have found a post that said change all the Image Sizes to 0 then save. This will stop word press from resizing your images.

    Go to your Dashboard
    Go to Settings
    Go to Media
    Clear any entries under the Image Sizes menu (set to 0)
    Press Save Changes

    https://electrokami.com/coding/wordpress-disable-automatic-image-thumbnail-resizing/

    I have not tested this for myself yet.

    hope this helps ??

Viewing 8 replies - 1 through 8 (of 8 total)