ramonopoly
Forum Replies Created
-
Glad to hear it! Good luck with it 🙂
Hi!
It seems like that error pops up when there’s a problem with imports.
I think two of the imports – TextControl and NumberControl – live in the components package.
You could try the following:
js import { useBlockProps, MediaPlaceholder } from '@wordpress/block-editor'; import { TextControl, __experimentalNumberControl as NumberControl } from '@wordpress/components';Forum: Plugins
In reply to: [Gutenberg] V11.8.0 color issuesHi!
I think that it might rather be related to https://github.com/WordPress/gutenberg/pull/33541
To paraphrase the PR description, before that change the text of the Cover block was always white unless the user customized it.
So I suspect that, by upgrading, the text color switched based on the background color of the cover block?
I can confirm this.
Steps to reproduce:
1. Install 11.4 on WordPress 5.8. Then install EditorsKit.
2. Open the Block editor.
3. See that “[t]he editor has encountered an unexpected error.”I see the following errors in the console:
An error occurred while running 'mapSelect': Cannot read property 'editorskitAutoSave' of undefinedand
TypeError: Cannot read property 'autosaveInterval' of undefinedWhich I take to be related to this file: https://plugins.trac.wordpress.org/browser/block-options/trunk/src/extensions/components/autosave/components/menu.js#L67
Forum: Fixing WordPress
In reply to: Page isn’t loading correctly until refresh – Plugin issue?How do I change that out? I have it set but I guess it doesn’t show.
It might be something unique to a plugin or the theme you’re using. Are there any options to set a placeholder images for those background videos?
If you suspect Siteground, you might like to ask/search in https://wordpress.org/support/plugin/sg-cachepress/
I’m not familiar with the Siteground plugin, sorry! So I can’t provide any specific tips.
- This reply was modified 4 years, 11 months ago by ramonopoly. Reason: formatting
Forum: Fixing WordPress
In reply to: HTML Code not savingIt could be related to many things.
Are you running the Block Editor (Gutenberg) or Classic Editor?
When you try to save the post/page, what do you see in the network tab in your browser console? Look out for any XHR requests that fail.
Forum: Fixing WordPress
In reply to: Page isn’t loading correctly until refresh – Plugin issue?When clicking on your video hero screen I do see a grey background for some of the slides.
Maybe it’s something to do with video poster image. This, for me is a 16×16 grey square: https://www.flagshipluxuryexpeditions.com/wp-content/uploads/2020/05/dare-to-dream-1.jpg
Forum: Fixing WordPress
In reply to: Can’t login to dashboard after auto updatesHello!
Did you update WordPress, or your plugins or both?
Also, it would help folks to advise if you could post any errors or screenshots of what you see when you try to login.
I’m not sure this is the cause, but I can see from your site that there are plugins that are causing errors: revslider and fabio-shortcodes.
As a first step, you could disable these plugins, but if you can’t login that’s going to be hard 🙂
The other way to disable the plugins is to rename the plugin folders. For exmaple rename
revslidertorevslider.deactivatedfor example.You can find the plugin folders in your WordPress install under
wp-content/plugins/.To do this you’ll need FTP access to your site. Your hosting provider should be able to help you with this if you’re unsure.
To re-enable the plugins you can rename them back to the original name, e.g.,
revslider.deactivatedbecomesrevslideragain.Forum: Requests and Feedback
In reply to: Improve plugin searchHi there!
You could try creating a meta ticket describing your new feature/enhancement idea.
https://meta.trac.wordpress.org/newticket
I’d recommend also adding any screenshots, use cases and other information that will help folks discuss your proposals.
Thank you!
Forum: Fixing WordPress
In reply to: can’t login: browser wants to download app, not go to dashboardHello!
That popup could mean that your website wants a PHP version that’s not installed on the server.
Are there any PHP
AddHandlerstatements in your.htaccessfile? It looks something like<IfModule mime_module> AddHandler application/x-httpd-ea-php74 .php .php7 .phtml </IfModule>If so, it should match the version of PHP you’re running on the server.
Double check what your server is running. If it’s PHP 7.4 as you say, then it should match the
AddHandler.If your
.htaccessis auto-generated, it might be best to ask your hosting provider for support.Forum: Fixing WordPress
In reply to: Gutenberg Templates plugin?It looks like the register_block_pattern() function only works during init. Am I right with that?
Yes, that’s what the documentation recommends.
Though within a custom plugin, I’ve also registered and unregistered patterns in the
current_screenandplugins_loadedhooks.Sometimes you’ll need
$current_screenfor example. I can’t say if that’s 100% legit, but it worked for me.See also: https://github.com/WordPress/gutenberg/blob/release/11.4/lib/block-patterns.php#L251
I’m making an assumption that register_block_pattern is something that needs to be called every load for each pattern and that they doesn’t persist.
I’m pretty sure your assumption is correct here.
When we register a pattern, they’re loaded every page refresh.
I think I’m right in saying that we build the patterns registry every time (maybe PHP does some optimisation in the background), and we don’t cache them in transients etc like we do the patterns directory request for example.
- This reply was modified 4 years, 11 months ago by ramonopoly. Reason: formatting
Forum: Fixing WordPress
In reply to: Gutenberg Templates plugin?As I said above, reusable blocks don’t work because they are ‘one block’ when used across the site. If you change it, it’s reflected across all the locations unless you convert it back into blocks.
Ah, sorry I jumped ahead, or behind, or nowhere useful at least, and didn’t realize you needed to tweak them.
What I need is patterns but being able to create them from the editor. I suspect I’m going to need to make a plugin for it.
Agree. I don’t think it’d have to be a very large plugin, but it’d help manage a growing library of patterns and ensure consistency.
Good luck with it!
Forum: Fixing WordPress
In reply to: Gutenberg Templates plugin?Another option might be to create a pattern as a reusable block:
https://wordpress.com/support/wordpress-editor/blocks/reusable-block/
Forum: Fixing WordPress
In reply to: Links not working in admin panelIt’s likely that WordPress is logging these errors. If the problem is still happening you could try to turn debug and logs in wp-config.php:
define( 'WP_DEBUG', true );define( 'WP_DEBUG_LOG', true );Triggering the issue again should (hopefully) log an error message to
wp-content/ debug.logHere’s an article that describes how to do this: https://www.wpbeginner.com/wp-tutorials/how-to-set-up-wordpress-error-logs-in-wp-config/
If the logs don’t mean much to you, you can paste the output here and folks can take a look for you.
Forum: Fixing WordPress
In reply to: functions.phpan observation, it’s not one or two users, it’s user roles, like clients
Are you using default WordPress roles, e.g., Author, Editor, Contributor, and so on, or have you created custom roles via a plugin?
You can check for specific roles in the
rolesproperty of the user object.$user = wp_get_current_user(); if ( in_array( 'author', (array) $user->roles ) ) { // Add your custom CSS for Authors here. }I thought in the form of CSS it would be easier.
I agree with the suggestion about displaying the widget conditionally. If you need to detect roles and add custom CSS accordingly it might not be any easier.
Or were you imagining to be able to hook into an existing CSS class, for example
is-authoror something? If so, I don’t think that’s available by default unfortunately.If you’re comfortable with developing WordPress sites, there are a lot of hooks related to sidebars and widgets. For example the widget_text hook, which allows you to filter the contents of text widgets.
Knowing exactly which widget you want to show and where, would help to narrow down the options.
- This reply was modified 4 years, 11 months ago by ramonopoly.