jchambo
Forum Replies Created
-
Forum: Plugins
In reply to: [Prismatic] Inline Code Option Available?I just figured this out. You can leverage inline code style by adding a class to the <code>.
Example, by default, when using the <code> option in WordPress for text, it doesn’t add a class of any kind. Just switch over to the “Code” tab when editing text (a blog post for example) and add a class in the following format:
<code class="language-css">Example text</code>Just change the above language to that of which you are using:
- HTML:
<code class="language-html"> - CSS:
<code class="language-css"> - JavaScript:
<code class="language-javascript"> - Python:
<code class="language-python"> - C++:
<code class="language-cpp"> - Java:
<code class="language-java"> - PHP:
<code class="language-php"> - Markdown:
<code class="language-markdown">
@madhavipekamwar – Did you ever figure this out? Seeing this myself.
@rankmathsupport – Appreciate the fix, but the actual fix was never shared or a “how-to” apply the fix on our own on other impacted websites.
Can you share exactly what was done and how we can do this on our own in detail please?
- This reply was modified 10 months, 1 week ago by jchambo.
This sounds oddly similar to my issue. My cron jobs are all running fine but Rank Math’s Analytics job appears to have completely died and will not run on its own.
Follow along here: https://support.rankmath.com/ticket/analytics-stopped-working-week-of-may-19th-may-25th/page/2/#post-1078334
@tessawatkinsllc – I was able to accomplish this with some custom code with a Code Snippet thanks to ChatGPT.
Here it is for reference:
add_filter('wpcf7_mail_components', function ($components, $contact_form) {
if (!isset($_POST['staff_id'])) {
error_log("🚫 staff_id not found in form submission.");
return $components;
}
$staff_id = absint($_POST['staff_id']);
if (!$staff_id) {
error_log("❌ Invalid staff_id submitted.");
return $components;
}
$email = get_field('staff_email', $staff_id);
if (!is_email($email)) {
error_log("❌ Invalid staff_email for post ID $staff_id.");
return $components;
}
// Combine default "To" and dynamic staff email
$default_to = $components['recipient'];
$components['recipient'] = $default_to . ', ' . $email;
error_log("✅ Email sent to: $default_to and $email");
return $components;
}, 10, 2);Pair the above code with adding a hidden field in the CF7 form:
[hidden staff_id default:shortcode_attr]Ah, bummer. Appreciate the reply though!
@mdashikul – Is it possible to pull a dynamic “Email” field that gets populated onto the Post, into a CF7 form that is on the same Post, into the “Mail > To” field?
Would also like to see this available in the Classic Editor.
OK definitely not fixed by changing the Wordfence setting. This appears to be a Chrome issue with Jetpack.
Please advise / resolve.
Well what a roller coaster ride that was…. turns out coincidentally I updated “Easy Social Share Buttons for WordPress” just prior to toggling the above option in Wordfence and that was actually the culprit.
I’ve reached out to the plugin author to release a hotfix.
I would like an answer though as to why these errors occur in Chrome and not Firefox or Firefox Developer Edition without the need to toggle the above in Wordfence.
When checking
/var/www/html/wp-content/debug.logI see the following:[19-Jul-2024 00:47:55 UTC] WordPress database error Table 'wordpress.wp_jetpack_sync_queue' doesn't exist for query SELECT COUNT(*) FROM wp_jetpack_sync_queue WHERE queue_id = 'sync' made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, Automattic\Jetpack\Sync\Sender->do_sync, Automattic\Jetpack\Sync\Dedicated_Sender::spawn_sync, Automattic\Jetpack\Sync\Queue->size, Automattic\Jetpack\Sync\Queue\Queue_Storage_Table->get_item_countOK nevermind I’m blind, I see the following text now in Wordfence:
“You must choose the “Skipped” option if you use the WordPress app, the Jetpack plugin, or other services that require XML-RPC.”
What’s funny is once I switched the toggle from “
REQUIRED” to “SKIPPED” my site broke instantly with the classic “There has been a critical error on this website.” error. Even turning on DEBUG mode in my wp-config.php file didn’t do anything or show me any errors.I re-downloaded the WordPress core files and uploaded them however it did not fix my issue. What…. the……. hell.
- This reply was modified 1 year, 11 months ago by jchambo.
My Wordfence settings are set to the following for XML-RPC. Do these need to be adjusted?
https://pasteboard.co/8JqKmUAh5iZR.png
- This reply was modified 1 year, 11 months ago by jchambo.
Forum: Fixing WordPress
In reply to: 6.6 update caused underline on all linksAlso seeing this everywhere. When is a release for 6.6.1 planned? I can’t believe it’s been nearly 24 hours and the most popular CMS in the world has yet to release a fix.
@wpmudev-support2 Unfortunately that’s been the same old story since 2018. For now I’ve deactivated Forminator and am now using the following to achieve this, for free:
- Contact From 7
- Contact Form 7 Connector (for the MailerLite connection)
- Ultimate Addons for Contact Form 7
It’s a shame there has been no movement on this even though the requests are there for it.
- HTML: