mihailmc
Forum Replies Created
-
Forum: Plugins
In reply to: [Cost Calculator Builder] Exclude Cost Calculator from Cache PluginFor now i am testing this, but it would be nice to have a confirmation from the dev:
1) Per-URL: disable content processing only (keep cache)
WP Admin → Accelerator → Settings → Exclusions
- URI paths → Exclude from content processing (do not tick “exclude from caching”):
/ /request-quote-online-order/This leaves the pages cached but prevents Seraphinite from altering their JS/CSS. 2) Asset-level excludes (JS/CSS of the calculator)
In Seraphinite, open each section below and paste the lines.
Scripts → Grouping → Excludes → Particular scripts
src:@/wp-content/plugins/cost-calculator-builder/@ src:@/wp-content/plugins/cost-calculator-builder/frontend/@ src:@/wp-content/plugins/cost-calculator-builder/frontend/vue3/@Scripts → Minify → Excludes
src:@/wp-content/plugins/cost-calculator-builder/@ src:@/wp-content/plugins/cost-calculator-builder/frontend/@ src:@/wp-content/plugins/cost-calculator-builder/frontend/vue3/@Scripts → Non-critical (defer) → Exclude
src:@/wp-content/plugins/cost-calculator-builder/@ src:@/wp-content/plugins/cost-calculator-builder/frontend/@ src:@/wp-content/plugins/cost-calculator-builder/frontend/vue3/@(“Exclude” here means “treat as critical”—don’t defer.)
Styles → Non-critical (delay) → Exclude
href:@/wp-content/plugins/cost-calculator-builder/@ href:@/wp-content/plugins/cost-calculator-builder/frontend/@3) Optional hardening (inline/advanced)If your Seraphinite build offers inline script excludes:
Scripts → Inline → Exclude if contains
cost-calculator-builder ccb_app_ data-calc-id=And under Scripts → General, if you still see intermittent issues:
- Turn off “Loading without timing switching.”
- Keep on “Prevent double initialization of excluded scripts.”
4) Purge and test
- Purge Seraphinite cache after saving settings.
- If you use Cloudflare, disable Rocket Loader and set a Page Rule/Cache Rule to Bypass “Speed” optimizations just for:
https://edwayllc.us/https://edwayllc.us/request-quote-online-order/
(Caching can remain Standard.)
5) Quick sanity checklist
- Ensure no other optimizer (Autoptimize/LiteSpeed/WP Rocket) is also minifying/deferring these same files—add the same patterns there if used.
admin-ajax.phpis typically excluded by default; leave it that way.- Test logged-out in an incognito window.
Fixed by
– editing AdminHooks.php – replaced from line 137 to 179 with the below code.
– got back the admin dashboard
– deleted all filters
– deleted the plugin Filter Everything
– reinstalled the plugin
– recreated filterspublic function checkForbiddenPrefixes()
{
$forbiddenPrefixes = flrt_get_forbidden_prefixes();
$savedPrefixes = get_option( 'wpc_filter_permalinks', [] );
// Ensure $savedPrefixes is an array
if (!is_array($savedPrefixes)) {
$savedPrefixes = maybe_unserialize($savedPrefixes);
}
if (!is_array($savedPrefixes)) {
$savedPrefixes = []; // If still not an array, default to an empty array
}
$warningPrefixes = [];
foreach( $forbiddenPrefixes as $prefix ) {
if( in_array( $prefix, $savedPrefixes, true ) ) {
$warningPrefixes[] = $prefix;
}
}
$permalinkOptionsUrl = admin_url( 'edit.php?post_type=filter-set&page=filters-settings&tab=prefixes' );
$permalinksTab = new PermalinksTab();
$permalinksTabLabel = strtolower( $permalinksTab->getLabel() );
if( ! empty( $warningPrefixes ) ){
$message = wp_kses(
sprintf(
_n(
'Error: <strong>%s</strong> filter prefix is not allowed and must be changed on the Filter %s settings <a href="%s" target="_blank">page</a>. Otherwise this site will not work properly.',
'Error: following filter prefixes <strong>%s</strong> are not allowed and must be changed on the Filter %s settings <a href="%s" target="_blank">page</a>. Otherwise this site will not work properly.',
count($warningPrefixes),
'filter-everything'
),
implode( ', ', $warningPrefixes ), $permalinksTabLabel, $permalinkOptionsUrl
),
array(
'strong' => array(),
'a' => array('href' => true, 'target' => true)
)
);
?>
<div class="notice wpc-error is-dismissible">
<p><?php echo $message; ?></p>
</div>
<?php
}
}I fixed it by modifying the AdminHooks.php code, that gaved me access to my admin. I deleted the filters i previously created, deactivated the filter everything plugin and deleted it. Then reinstalled it to have the orginal AdminHooks.php back, and now my admin works. Thank you @fesupportteam for being so useless.
@lkaufmann here is the code. Replace everything in adminhooks from line 137 to 179 with:
public function checkForbiddenPrefixes()
{
$forbiddenPrefixes = flrt_get_forbidden_prefixes();
$savedPrefixes = get_option( 'wpc_filter_permalinks', [] );
// Ensure $savedPrefixes is an array
if (!is_array($savedPrefixes)) {
$savedPrefixes = maybe_unserialize($savedPrefixes);
}
if (!is_array($savedPrefixes)) {
$savedPrefixes = []; // If still not an array, default to an empty array
}
$warningPrefixes = [];
foreach( $forbiddenPrefixes as $prefix ) {
if( in_array( $prefix, $savedPrefixes, true ) ) {
$warningPrefixes[] = $prefix;
}
}
$permalinkOptionsUrl = admin_url( 'edit.php?post_type=filter-set&page=filters-settings&tab=prefixes' );
$permalinksTab = new PermalinksTab();
$permalinksTabLabel = strtolower( $permalinksTab->getLabel() );
if( ! empty( $warningPrefixes ) ){
$message = wp_kses(
sprintf(
_n(
'Error: <strong>%s</strong> filter prefix is not allowed and must be changed on the Filter %s settings <a href="%s" target="_blank">page</a>. Otherwise this site will not work properly.',
'Error: following filter prefixes <strong>%s</strong> are not allowed and must be changed on the Filter %s settings <a href="%s" target="_blank">page</a>. Otherwise this site will not work properly.',
count($warningPrefixes),
'filter-everything'
),
implode( ', ', $warningPrefixes ), $permalinksTabLabel, $permalinkOptionsUrl
),
array(
'strong' => array(),
'a' => array('href' => true, 'target' => true)
)
);
?>
<div class="notice wpc-error is-dismissible">
<p><?php echo $message; ?></p>
</div>
<?php
}
}Later Edit: Haha, i found the culprit. I had a custom code added inside elementor>custom codes for Lenis Smooth Scroll:
<script src="https://cdn.jsdelivr.net/gh/studio-freight/[email protected]/bundled/lenis.js"></script>
<script>
const lenis = new Lenis({
duration: 1.2,
easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)), // https://www.desmos.com/calculator/brs54l4xou
direction: 'vertical', // vertical, horizontal
gestureDirection: 'vertical', // vertical, horizontal, both
smooth: true,
mouseMultiplier: 1,
smoothTouch: false,
touchMultiplier: 2,
infinite: false,
})
//get scroll value
lenis.on('scroll', ({ scroll, limit, velocity, direction, progress }) => {
console.log({ scroll, limit, velocity, direction, progress })
})
function raf(time) {
lenis.raf(time)
requestAnimationFrame(raf)
}
requestAnimationFrame(raf)
</script>Searching online for a solution i stumbled upon this reported issue in github https://github.com/elementor/elementor/issues/29122 and after reading it, i remembered i had added one year ago a custom code for smooth scrolling. So, i removed the custom code and problem was fixed in version 3.25.3.
Well, like i said in my original post, downgrading was the only “fix”. So the problem is only with mouse wheel scroll, when scrolling the website top to bottom and botton to top. Using de right slider, the scroll is smooth…I tried deactivating all other plugins and leave only elementor and elementor pro active. I also changed the theme to Hello Elementor, and the issue was still present.
What is weird is that i can’t reproduce this on other websites i own… On the problematic site, i checked if some custom css was added, but there isn’t any.
Forum: Plugins
In reply to: [WPGlobus - Multilingual WordPress] Critical Error – Elementor-WpGlobusYou can try using the uninstaller from wpglobus options. This will remove the language tags from database. But on my case, even if i used this option, my main language pages were broken too…somehow all the containers were merge into a single one. So, i let the site as it is, with elementor 3.16.6 and wpglobus and i cloned the site. On the clone i removed wpglobus and rebuilt my main scrambled language pages using copy (from the live site) > paste option (from another site to clone without wpglobus) in elementor. After everything was rebuild on the clone, i removed the live website and made the clone as main live site. It was like 20 hours of work, but in the end i got rid of this stupid wpglobus plugin.
Forum: Plugins
In reply to: [WPGlobus - Multilingual WordPress] Critical Error – Elementor-WpGlobusHi all,
If you see this, i also posted on Elementor support forum, perhaps they can help out. Here is the link if you would like to comment, and ask them to help us. Perhaps if they see more people stuck with this error, they might suggest some fixes.
https://wordpress.org/support/topic/critical-error-elementor-wpglobus-2
Forum: Plugins
In reply to: [WPGlobus - Multilingual WordPress] Critical Error – Elementor-WpGlobus2 months later and no fix… I can’t even switch to other multilanguage plugin. Besides the need to remove language tags and re-do en pages, it seems that deactivating WP Globus also scrambles my Elementor RO pages !!! This is a nightmare. I am stuck with Elemntor V 3.16.6 and this stupid WP Globus plugin!!!
- This reply was modified 1 year, 12 months ago by mihailmc.
Forum: Plugins
In reply to: [WPGlobus - Multilingual WordPress] Critical Error – Elementor-WpGlobusI would gladly use other translate plugin, but getting rid of WPglobus is a big pain in the…. Why? Because the way it is working, by adding those language tags like {en}. I know there is a cleanup tool inside wpglobus, but that would mean i would have to recreate from 0 all my EN pages and for a big site, it would take me at least 1 week. But, seeing that after 2 weeks, the DEVs do not even bother to answer to this topic, i guess this is the kick in the butt i needed to start replacing WPglobus.
Forum: Plugins
In reply to: [WPGlobus - Multilingual WordPress] Critical Error – Elementor-WpGlobusThread Starter