Anton Vlasenko
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Undefined array key 3807the right thing to do is for the developer of the conflicting plugin/theme to fix their plugin/theme.
It is not known what the cause of this issue is.
Unfortunately, there are no steps to reproduce the issue.
The only thing that is clear to me is that the PHP warning is related to the patch I mentioned above.
It wouldn’t have appeared without the patch.
From my point of view, the code of the patch must be improved to fix the PHP warning and/or handle it properly.- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
Forum: Fixing WordPress
In reply to: Undefined array key 3807Hello, @macmanx.
Thanks for your reply.
I’ve already reported it in the original issue where the “bug” was created: https://core.trac.wordpress.org/ticket/28620#comment:34
I’m inclined to let core committers decide what to do with it.
Even if it’s a plugin conflict, it must not cause PHP warnings in Core files.
From my point of view, it’s more about following the rules of “defensive programming” rather than plugin conflicts.- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
Forum: Fixing WordPress
In reply to: Undefined array key 3807Hello, @cantraig.
I think that’s a bug. It was introduced about 3 weeks ago.
In my opinion, it has nothing to do with FTP/SFTP.
I will alert the developers so they can work on a proper fix.
Meanwhile, you can edit thesrc/wp-includes/nav-menu-template.php
file and replace this line (line #212):$menu_item_parent = $menu_items_tree[ $menu_item_key ];
with
$menu_item_parent = isset( $menu_items_tree[ $menu_item_key ] ) ? $menu_items_tree[ $menu_item_key ] : 0;
But please do this at your own risk (and make backups).
Editing core files is a bad idea, and I’m only providing this code snippet out of a desire to help until a proper fix gets released. I haven’t tested it and I don’t know if it will work.- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
Forum: Requests and Feedback
In reply to: Please add string locatorHello,
Since you have a feature request, creating a new trac ticket would be better. This forum is primarily intended for providing technical support.
Thanks!- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
Hello,
Thanks for contacting the support forum.It would be helpful if you could list the steps to reproduce this bug.
Which widget did you try to add images to exactly, which button did you press, and so on?
I’ve searched for similar issues here but couldn’t find anything.As for the error, yes, this kind of error can happen 100 %.
Requests with more than 25 items must be split into multiple smaller requests not to exceed that limit.
Another request: could you please confirm that the Gutenberg plugin is not activated on your WordPress installation?- This reply was modified 1 year, 5 months ago by Anton Vlasenko.
Forum: Plugins
In reply to: [WooCommerce] Uncaught Error: Class ‘Normalizer’ not foundYou are welcome.
It depends on where your site is hosted.
If you are using a hosting company to host your website, it would be better to contact their support team and ask them to enable this PHP extension (intl).
It’s hard for me to tell something specific without knowing the details.Forum: Plugins
In reply to: [WooCommerce] Uncaught Error: Class ‘Normalizer’ not foundHello!
Thanks for contacting the support forum.
It looks like your you need to install the PHP intl extension.
TheNormalizer
class is part of that intl extension.Forum: Fixing WordPress
In reply to: Can’t Access Admin DashboardHello!
I can only guess, but it could somehow be related to your cookies/session.
Have you tried to log in incognito/private mode? https://support.google.com/chrome/answer/95464?hl=en&co=GENIE.Platform%3DDesktopForum: Fixing WordPress
In reply to: How to change href lang on single pages/posts?there are differences between the german<>english version of the theme?
I don’t think there is any difference in terms of how the
lang
attribute works (there must be no difference).the new function is overwritten by something after the call of “functions.php”?
It’s hard to tell without having access to your WordPress installation. You can try to disable all plugins and check if it resolves the issue.
Please bear in mind that you need to modify the code of the function I posted and changemy-post-or-page-url
to the actual URL slug of your page or post.- This reply was modified 2 years, 8 months ago by Anton Vlasenko.
Forum: Fixing WordPress
In reply to: How to change href lang on single pages/posts?Hi, @ralphmuc.
I’d try to include it into
wp-content/themes/twentyseventeen/functions.php
file (in case you use twentyseventeen theme).
Please let me know if it works.- This reply was modified 2 years, 8 months ago by Anton Vlasenko.
Forum: Fixing WordPress
In reply to: How to create your own Spotify Landing Page?Is it as simple as copy & pasting html code from the Spotify API to a custom page?
In my opinion it’s definitely not that simple, because it’s impossible to build proper interaction with Spotify API just by using their html widgets. Html is just not suited for that. It would require some backend programming using PHP or other suitable language such as Python or Node.js/Javascript.
- This reply was modified 2 years, 8 months ago by Anton Vlasenko.
Forum: Fixing WordPress
In reply to: Set New Password button not working@mattocmp I’ve tried to reproduce it again and it changes the password every time.
Do you have any plugins installed?Forum: Fixing WordPress
In reply to: Set New Password button not workingHm, I can’t reproduce this issue.
I’m sorry, but I have to ask this question just to be sure.
Are you sure you are clicking on the “Update User” button at the bottom of the page after you change password for a user?
Do you see “User updated” notification at the top the page when the page gets reloaded?- This reply was modified 2 years, 9 months ago by Anton Vlasenko.
- This reply was modified 2 years, 9 months ago by Anton Vlasenko.
- This reply was modified 2 years, 9 months ago by Anton Vlasenko.
Forum: Fixing WordPress
In reply to: How to change href lang on single pages/posts?@ralphmuc I’ve just realised that my code will not work for posts, it only works for pages.
I’ve updated it so now it should work for both posts and pages.add_filter('locale', 'change_page_locale'); function change_page_locale( $default_locale ) { $pages_to_change_locales_for = [ 'my-post-or-page-url' => 'de-AT', ]; foreach ($pages_to_change_locales_for as $slug => $locale) { if (is_page($slug) || ($slug === get_post_field('post_name'))) { return $locale; } } return $default_locale; }
Of course, you will have to replace my-post-or-page-url with the actual slug of your page or post.
Please let me know if it works.
I’ve tested it on WP 5.7.2 and twenty seventeen theme and it should be working.
Forum: Fixing WordPress
In reply to: I cannot reach the site.Unfortunately that error message doesn’t help much.
I suggest you to do the following.
Please enable WP_DEBUG and WP_LOG settings. See this article on how to do this.
Try to load your site again, open your WordPress log error file and post the output here, so somebody could help you with the issue.