sugapablo
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Fatal Error after upgrade to 6.6.0 (+ my fix)Thanks, Barry. I already fixed it in my install, but glad to know that fix won’t be overwritten. 🙂
I have solved this, and the fix might help others who are reporting this issue.
The error reported was here:
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = function(a) { if (! function(a, e) { return a = new URL(a, window.location.origin), e = new URL(e, window.location.origin), a.hostname === e.hostname && a.port === e.port && a.protocol === e.protocol }(window.location, a)) return i(a); var e = null; try { e = new Worker(a) } catch (t) { try { e = i(a) } catch (a) { throw a } } return e }Saying that:
TypeError: Object is not a constructor (evaluating ‘new URL(a,window.location.origin)’)
Going through all of the code, since ‘a’ and ‘window.location.origin’ were validf, I realized the only way this error could happen was if some other code had created an object named ‘URL’ previous to this.
I went through the theme (that came from ThemeForest) and indeed found a wp_localize_script (https://codex.wordpress.org/Function_Reference/wp_localize_script) function call that was setting $name as ‘URL’.
Changing this in the theme to ‘URLb’ was enough to get everything working again.
12.7.1 did NOT solve the problem. Issue remains with this release.
Forum: Fixing WordPress
In reply to: Bad domain name generated on admin side.OK. You pretty much confirmed what I had concluded so, thank you.
Forum: Fixing WordPress
In reply to: Bad domain name generated on admin side.@bcworkz Is there a filter that could be placed between the plugins and the head section to check for the string and replace it?
RESOLVED: Modules By User Roles *sigh*
No such luck. I tried that and the same with almost every plugin I installed. Nothing is bringing back the functionality of Booster plus that WAS working.
Also seems that Price based on User Role Module Options is not working as well.
“When enabled, this will add new “Booster: Price based on User Role” meta box to each product’s edit page.”
This WAS working, but is no longer. These meta boxes and columns just aren’t showing up on the admin side.
Actually, it seems to be a larger problem. The column for User Role visibility is now also gone from the Products list.
Screens: https://imagebin.ca/v/4f3z8jjdHXbX
It’s not there: https://imagebin.ca/v/4f3kkjItmUNR
Nor is it in the screen options: https://imagebin.ca/v/4f3kVk8vGpPh
Forum: Fixing WordPress
In reply to: Why one author’s posts can’t be seen. (Only one)Yeah, except for trying to revert back to WP4.*, I’ve looked into the rest.
It’s some problem with the ancient theme being used (everything works with a stock theme), but I can’t for the life of me narrow down why it’s only affecting one author.
I just need to isolate what could be different about this author/his posts.
I’ve tried changing the author one of his posts to another, but that didn’t help. (So it seems initial authorship caused this.)
I’ve tried cutting all the text out of the post and THAT didn’t help. (So it seems it’s not some shortcode or something pasted into the body that’s caused this.)
There just has to be something different about this author or his posts that I can’t figure out yet.
Yes. Very good. Thank you for your quick reply.