Artemio Morales
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wordpress editor The editor has encountered an unexpected error.@sunstate Great of course, glad to hear it’s working again
Forum: Fixing WordPress
In reply to: wordpress editor The editor has encountered an unexpected error.@sunstate Apparently the PR has been successfully cherry-picked for release in the next point version of 6.4, but so far the point versions that have gone out have all been maintenance releases.
As far as I can tell, the next non-maintenance point release will include this fix and other Gutenberg bug fixes, though I’m not sure when that will be yet.
Forum: Fixing WordPress
In reply to: wordpress editor The editor has encountered an unexpected error.@sunstate I just tested in WordPress 6.4.2 and indeed, it seems the issue is still present. As far as I can tell though, the fix was supposed to be merged.
I’m currently checking on this to see what happened. Thanks for following up!
Forum: Fixing WordPress
In reply to: Cannot log in to administrators dashboard@diebornmans I’m sorry to hear this happened to you, and pardon for the late response — I needed to step away from the forums for a bit.
I’m still foggy as to what could have caused you to lose administrator access in the first place. Perhaps there was a plugin conflict or a bug with the user registration logic that caused this to happen. I’ll take a look to see if I can create a new user and replicate the issue.
In any case, I wish you the best of luck on your next steps and hope that you can find something that suits your needs 🙏
Forum: Fixing WordPress
In reply to: Cannot log in to administrators dashboardGot it. If you’re able to get command line access, using WP-CLI might be straightforward way to fix this. I believe you could use wp user set-role.
Forum: Fixing WordPress
In reply to: Cannot log in to administrators dashboardWhat caused you to lose the administrator capability?
Forum: Fixing WordPress
In reply to: Cover Block – “contain” instead of “cover” on mobile@jfans8yg19 Ok I’ve been able to take a closer look at this. Are you by chance using a block theme with full site editing? If so, you could give this approach a shot:
- First, give the cover blocks you’d like use
object-fit: containa custom CSS class likecover-containby clicking on each block in the editor, then going to Advanced under block settings:
2. Then, add the following CSS to your theme using full site editing.
.wp-block-cover.cover-contain .wp-block-cover__image-background { object-fit: contain; }You would add that by going to Full Site Editor > Edit Styles > Styles (More) > Additional CSS:


The caveat is that the cover will still retain its height, so additional space may be present on the top and bottom of the images at smaller resolutions.
Beyond that, the best way I know how to get this right would be to create a child theme and create a custom template to have more granular control over the markup and display of the images, probably using
display: flexbox.Alternatively, you could explore creating a custom block that would overlay an image with text and retain aspect ratio while resetting its height dimension whenever the window resizes.
How does all of that sound? Perhaps that can give you some ideas or point you in the right direction 😄
Forum: Fixing WordPress
In reply to: I need help (install/activate themes)I’ve taken a general look at your site and indeed, it appears to not be built with WordPress.
It seems like websitebuilder.com has been merged with web.com, right?
Can you give an overview of how you initially set up your website, and how you’ve started trying to implement WordPress?
Based on that context, I or someone else here may be able to provide you with better assistance.
- This reply was modified 2 years, 6 months ago by Artemio Morales.
Forum: Everything else WordPress
In reply to: How to create a home page with five images in a row?Hello! Are you comfortable using custom templates and code? If so, I may be able to assist you.
If you’re otherwise looking to use the Storefront interface to create the layout, this sounds like a theme-specific issue, and I recommend going to the Storefront theme support forums to receive better assistance.Forum: Fixing WordPress
In reply to: wordpress editor The editor has encountered an unexpected error.Hi all, I’ve created a Github issue to discuss this bug more in depth, along with a proposed fix here.
Please feel free to chime in with any additional thoughts on the issue or pull request. We can hopefully get a fix in for the next minor release, WordPress 6.4.2.
In the meantime, as a temporary fix, you can add the following code to the image block’s v8
migratefunction in one of two places. If taking this approach, please make sure to create a backup of your files and note that any changes here will be overridden when you update Gutenberg or WordPress.if ( ! attributes.behaviors?.lightbox ) { return attributes; }- if you have Gutenberg installed and activated, you can add the code to
packages/block-library/src/image/deprecated.jsaround line 1049. - If you’re running WordPress without Gutenberg, you can add the code to
wp-includes/js/dist/block-library.jsaround line 23678
Thank you!
- This reply was modified 2 years, 6 months ago by Artemio Morales.
- This reply was modified 2 years, 6 months ago by Artemio Morales.
- This reply was modified 2 years, 6 months ago by Artemio Morales.
- This reply was modified 2 years, 6 months ago by Artemio Morales.
Forum: Fixing WordPress
In reply to: wordpress editor The editor has encountered an unexpected error.@sunstate I’ve taken a closer look at this and indeed, modifying the meta attributes appears to cause the migration function to run unexpectedly, causing the error.
I’m currently consulting with some other contributors to find the best path forward.
Forum: Fixing WordPress
In reply to: Problem in Adding a new postJust to clarify: You don’t see any JavaScript errors in the browser inspector tools in the console, right?
A few other things we can consider:
- Can you try switching themes to see if that fixes it?
- Are there any plugins that could be the cuplrit?
- Is there any suspicious code in your
functions.php?
Forum: Fixing WordPress
In reply to: uploaded images become brokenAre you able to check permissions on the files before and after you apply the crop? Perhaps the images get uploaded with one set of permissions, but those change when the image is modified.
Forum: Fixing WordPress
In reply to: Problem in Adding a new postHello, what version of WordPress are you running? Did you recently go through the update?
Also, are there any errors in the browser console?
Forum: Fixing WordPress
In reply to: wordpress editor The editor has encountered an unexpected error.This may have to do with the image’s deprecated.js — that’s the link to the file in Gutenberg, but I’m not sure where it ends up in WordPress core. Am looking now.
The fact that the error message mentions
migrateand that a native lightbox was just added to core is tipping me in this direction, though am not sure. - First, give the cover blocks you’d like use