kingafrojoe
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg] Gutenberg not savingThis 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
andSite 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.
Forum: Fixing WordPress
In reply to: 4.4 upgrade giving Fatal Error in formatting.php line 3896Sure 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!
Forum: Fixing WordPress
In reply to: 4.4 upgrade giving Fatal Error in formatting.php line 3896I 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 quickif
to swap the empty obj to a empty str fixed all problems.Forum: Plugins
In reply to: W3TC – MFUNC in a loopI 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 loopHi 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.
Forum: Fixing WordPress
In reply to: Login and admin 404 errorI 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?
Forum: Fixing WordPress
In reply to: disable image crunchingI 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 Changeshttps://electrokami.com/coding/wordpress-disable-automatic-image-thumbnail-resizing/
I have not tested this for myself yet.
hope this helps ??
Forum: Fixing WordPress
In reply to: Possible to disable image crunching?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 Changeshttps://electrokami.com/coding/wordpress-disable-automatic-image-thumbnail-resizing/
I have not tested this for myself yet.
hope this helps ??