threadi
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How do i integrate custom jquery in wordpress?The code looks fine, though. I can’t figure out right now why it isn’t working the way you expect. Is there a link somewhere where I can see it?
Forum: Fixing WordPress
In reply to: Display and allow purchase dynamicallyThe code above uses an unknown variable named
$filename. However, if you insert the code exactly as it appears here as a code snippet, it will immediately cause an error. The reason is that it uses the functionwc_get_cart_url(), among other things, which simply doesn’t exist when executed in isolation without any context.You need to execute this code within a specific context. This is typically done using hooks in WordPress. So the question is: where do you actually want to execute this code? In other words, where on the website should this generated link be placed? Depending on that, one can tell you which hook is suitable for this purpose. However, the
template_redirecthook seems incorrect to me in this context.Forum: Fixing WordPress
In reply to: Galleries only display as single columnYou have a server-side error, which you can see at the very bottom of the page. The reason for the error should be visible in the error log. You can find it in your hosting area. If necessary, the support of your hosting can help you.
Alternatively, you could also enable debugging in WordPress. How to do this is described here: https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/ – also here the support of your hosting can help you if necessary to edit the file accordingly.
In both cases you should be able to see what the cause is in the logfile.
Forum: Developing with WordPress
In reply to: How do i integrate custom jquery in wordpress?The selectors in your jQuery don’t match the HTML code generated by WordPress. In the HTML code, there’s an additional element with the class
.containerbetween the element with the classnavigationand the first<ul>. You need to account for this in your jQuery so that the events work.Incorrect:
.navigation > ul > liCorrect:
.navigation > .container > ul > liYou need to adjust this in all relevant places in the JavaScript-code.
Forum: Fixing WordPress
In reply to: Display and allow purchase dynamicallyThank you very much for the error log. It’s already clear from this that a specific PHP code snippet appears to be causing the error. I’d therefore still like to know more about the PHP snippet you inserted there?
Forum: Fixing WordPress
In reply to: Display and allow purchase dynamicallyYou can’t do without WooCommerce, since you need it to sell your photos. My guess is that the PHP code you’re using is faulty. Can you show it to us? Use the code block here in the forum: https://ww.wp.xz.cn/support/forum-user-guide/block-editor/#code-block
Can you take a screenshot of what you’re seeing? See: https://ww.wp.xz.cn/support/forum-user-guide/block-editor/#adding-screenshots – that would help us understand what this is all about.
Forum: Fixing WordPress
In reply to: Issue with Functions.php on line 6170These notices are simply the result of a plugin or your theme incorrectly calling WordPress’s own functions. Unfortunately, the exact source of the call cannot be identified in these PHP notices.
I would recommend that you deactivate your plugins one by one to determine which one is causing the issue. Once you’ve identified the culprit, contact its support team.
If it’s not a plugin, it could be your theme. You can also switch themes as a test to rule it out as the cause.
If you don’t want to perform these tests on a live site, you can use a staging environment instead. Either your hosting provider offers one, or you can use this plugin: https://ww.wp.xz.cn/plugins/wp-staging/
Forum: Fixing WordPress
In reply to: Cloudflare Prompt to Run Command on HomepageI would recommend that you contact Cloudflare support, since it is their service that is displaying this: https://www.support.cloudflare.com
Forum: Plugins
In reply to: [Easy Language] Critical Error on all admin pagesThanks for all the details. I was able to reproduce the issue with the blocks – it was a bug in the current release. So I’ve just released a new update to version 3.1.2, which includes the blocks again.
The detailed error log is very helpful. Although I still can’t reproduce the error (it’s likely related to data and/or settings in your project), I suspect a specific issue that I’ve also addressed in the new release.
Please update to version 3.1.2 and check if the problems are resolved.
If, contrary to expectations, the error still occurs, I would need to know the following:
- Do you already have simplified texts? If so, approximately how many?
- At exactly what point does the message appear? I suspect it doesn’t appear when you open the permalinks settings, but only when you save them.
Forum: Plugins
In reply to: [Easy Language] Critical Error on all admin pagesI’ve already had a chance to look into this – without success. In my testsystems, I don’t see any errors in the scenario you described. Not with the permalinks, nor anywhere else.
My guess is that you have some setting configured that might be causing this. Since I don’t know the exact nature of the error, I can’t even guess what it might be. It could be settings in any of the plugins involved. So here are some options I see for you to get closer to the cause:
- Check the language settings in WPML. How is Plain Language configured there? I have German, English, and Plain Language active, with German as the default language and everything else unchanged in the settings.
- Don’t check the error log; instead, use WordPress’s debug mode to see exactly which error is occurring here. See: https://developer.ww.wp.xz.cn/advanced-administration/debug/debug-wordpress/ – the full error message should be visible in the debug.log, not truncated like in the error log.
Forum: Fixing WordPress
In reply to: Update button almost invisible after WP 7.0 updateThis is a known bug for which a patch is already available here: https://core.trac.ww.wp.xz.cn/ticket/65286 – so it should be fixed with the next WordPress update (as far as I know, there is no release schedule for that yet).
Forum: Plugins
In reply to: [Easy Language] Critical Error on all admin pagesThe error message appears to be caused by a combination of at least four plugins:
- WPML
- WPML SEO
- Yoast
- Easy Language
It’s strange that Easy Language is the only one causing the error – and only there.
Unfortunately, I don’t currently have access to the commercial WPML SEO add-on, but I’ll try to get it in the coming days. Then I could try to reproduce the issue and get back to you.
Forum: Plugins
In reply to: [Easy Language] Critical Error on all admin pagesEasy Language isn’t adding anything to the permalink settings. What exactly is the error that’s occurring there? If you check the error log, pay close attention to exactly which error is being logged when you make that request.
Also important: which version of WordPress are you using, and which version of Easy Language? I always assume you’re using the latest version of Easy Language, which is 3.1.1.
Forum: Plugins
In reply to: [Easy Language] Critical Error on all admin pagesThanks for the feedback. The actual error had nothing to do with Easy Language. It was caused by the other two plugins.
The message that remains is merely informational and is caused by your database system being unable to handle the code generated by WordPress to update a database table that Easy Language includes. Unfortunately, I can’t do anything about this either, since it’s generated by WordPress itself. However, it shouldn’t have any functional impact, as it only concerns the default value of a column in the log table of the Easy Language plugin. If you want to get rid of the message, you should check what database system you’re using and which version. Since version 7.0, WordPress requires MariaDB 10.6+ or MySQL 8.0+. See: https://ww.wp.xz.cn/about/requirements/ – if you have any questions about this, contact your hosting provider’s support team.