GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Help Wordpress Experts... Got an error that we can't solve (https://gfy.com/showthread.php?t=1363646)

notinmybackyard 04-06-2023 10:49 AM

Help Wordpress Experts... Got an error that we can't solve
 
Wordpress throws an error every time we try to add a new post. Everything else seems to work great!

We have also tried deleting the wordpress blog and then creating a fresh clean install. The problem returns. We're absolutely lost!

Below is the error

Code:

TypeError: Cannot read properties of undefined (reading 'decodeEntities')
    at https://domain.com/news/wp-includes/js/dist/block-editor.min.js?ver=ed2b2aa3837336baf00f:26:298194
    at kt (https://domain.com/news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:47633)
    at js (https://domain.com/news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:120746)
    at kl (https://domain.com/news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88654)
    at yl (https://domain.com/news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88582)
    at vl (https://domain.com/news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:88445)
    at ol (https://domain.com/news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85269)
    at cl (https://domain.com/news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:85656)
    at zn (https://domain.com/news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:32470)
    at https://domain.com/news/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0:10:83221


Colmike9 04-06-2023 11:27 AM

Did you possibly switch from Apache to Nginx?

brassmonkey 04-06-2023 11:54 AM

change the theme to default

notinmybackyard 04-06-2023 01:17 PM

Quote:

Originally Posted by Colmike9 (Post 23120627)
Did you possibly switch from Apache to Nginx?

Nope

Quote:

Originally Posted by brassmonkey (Post 23120637)
change the theme to default

Does not appear to be theme related.

DVTimes 04-06-2023 01:24 PM

When I have a problem, it tends to be down to a plugin.

Try turning them all off and see if you still have a problem.

The other thing I find can be the php is the wrong version for your wp site or for a plugin.

brassmonkey 04-06-2023 01:25 PM

you have Yoast? deactivate it all clear cache and try

brassmonkey 04-06-2023 02:16 PM

it might be your ssl :helpme:helpme

Colmike9 04-06-2023 03:17 PM

Could be a config somewhere making the react files not work.

Freedom6995 04-06-2023 05:51 PM

was the fresh install with a fresh database?
is the site on CloudFlare?

notinmybackyard 04-06-2023 06:24 PM

Quote:

Originally Posted by Freedom6995 (Post 23120779)
was the fresh install with a fresh database?
is the site on CloudFlare?

Wiped everything from the domain including the database. 100% clean install with zero plugins, etc. Problem persists.

Went over to a different domain that we have. Totally clean install but wordpress session randomly expires. Haven't been able to stay logged in for more than a minute or two. Otherwise, everything works.

Either the hosting service or wordpress have fucked with something.

brassmonkey 04-06-2023 06:33 PM

Quote:

Originally Posted by notinmybackyard (Post 23120781)
Wiped everything from the domain including the database. 100% clean install with zero plugins, etc. Problem persists.

Went over to a different domain that we have. Totally clean install but wordpress session randomly expires. Haven't been able to stay logged in for more than a minute or two. Otherwise, everything works.

Either the hosting service or wordpress have fucked with something.

you have one on there off ssl? pm me where u host if u want my help. just the host name

Freedom6995 04-06-2023 07:07 PM

Quote:

Originally Posted by notinmybackyard (Post 23120781)
Wiped everything from the domain including the database. 100% clean install with zero plugins, etc. Problem persists.

Went over to a different domain that we have. Totally clean install but wordpress session randomly expires. Haven't been able to stay logged in for more than a minute or two. Otherwise, everything works.

Either the hosting service or wordpress have fucked with something.


I would try another host

Colmike9 04-06-2023 07:46 PM

Is it having the issue if you use a standard Twenty-something theme?

notinmybackyard 04-07-2023 07:06 AM

Quote:

Originally Posted by brassmonkey (Post 23120783)
you have one on there off ssl? pm me where u host if u want my help. just the host name

It's not an SSL problem

Quote:

Originally Posted by Colmike9 (Post 23120793)
Is it having the issue if you use a standard Twenty-something theme?

It's not a theme problem.

vdbucks 04-07-2023 07:30 AM

the issue is related to the gutenburg editor, and is likely a javascript conflict caused by a plugin or theme. It could be that another function is unsetting the 'decodeEntities' variable, hence the 'cannot read properties of undefined' message, or it could be as simple as an error in a block of js code that's breaking things.

your best bet is to install classic editor, get rid of gutenburg altogether, and never look back... even if that doesn't fix the above issue.

this is the function that's breaking: https://developer.wordpress.org/bloc...html-entities/

without being able to see the site live, i'm not able to troubleshoot further, but I'm 99% sure there's a javascript conflict somewhere.

notinmybackyard 04-07-2023 08:47 AM

Quote:

Originally Posted by vdbucks (Post 23120951)
the issue is related to the gutenburg editor, and is likely a javascript conflict caused by a plugin or theme. It could be that another function is unsetting the 'decodeEntities' variable, hence the 'cannot read properties of undefined' message, or it could be as simple as an error in a block of js code that's breaking things.

your best bet is to install classic editor, get rid of gutenburg altogether, and never look back... even if that doesn't fix the above issue.

this is the function that's breaking: https://developer.wordpress.org/bloc...html-entities/

without being able to see the site live, i'm not able to troubleshoot further, but I'm 99% sure there's a javascript conflict somewhere.

Thank you !
I installed classic editor and suddenly I'm able to write again. A test post seems to work without a problem. Honestly, I didn't even know that the default editor was gutenburg.

We've uninstalled, installed, reconfigured apache, trouble shot java, etc. This was a royal annoying problem that no one seemed to have the answer for and that includes the shmucks that built wordpress. I absolutely will keep my eyes open for any way I can repay the favor. (Including paying it forward)

fris 04-07-2023 09:43 AM

the people who i develop wordpress themes for do not like gutenberg, i developed my theme for classic, since they want to either plug external urls, or just create a simple gallery in a post.

brassmonkey 04-07-2023 11:05 AM

Quote:

Originally Posted by notinmybackyard (Post 23120980)
Thank you !
I installed classic editor and suddenly I'm able to write again. A test post seems to work without a problem. Honestly, I didn't even know that the default editor was gutenburg.

We've uninstalled, installed, reconfigured apache, trouble shot java, etc. This was a royal annoying problem that no one seemed to have the answer for and that includes the shmucks that built wordpress. I absolutely will keep my eyes open for any way I can repay the favor. (Including paying it forward)

you mean to tell me you tried to use that bullshit :Oh crap:Oh crap wow!

dUbster 04-07-2023 11:09 AM

I absolutely hate Gutenberg and only use classic on all my sites

JesseQuinn 04-07-2023 12:06 PM

Quote:

Originally Posted by dUbster (Post 23121036)
I absolutely hate Gutenberg and only use classic on all my sites

:thumbsup:thumbsup


OP, had you just googled "wordpress TypeError: Cannot read properties of undefined (reading 'decodeEntities')" you could have figured this out in 10 mins

notinmybackyard 04-07-2023 05:34 PM

Quote:

Originally Posted by JesseQuinn (Post 23121064)
:thumbsup:thumbsup


OP, had you just googled "wordpress TypeError: Cannot read properties of undefined (reading 'decodeEntities')" you could have figured this out in 10 mins

We did. At best google seems to hate us 50% of the time. When we want different results it seems like we need to use both a different system and connection.

Freedom6995 04-07-2023 05:39 PM

https://codefaq.org/wordpress/how-to...-of-undefined/

For those that wish to use Gutenberg, that is the fix.

brassmonkey 04-07-2023 07:53 PM

Quote:

Originally Posted by Freedom6995 (Post 23121161)
https://codefaq.org/wordpress/how-to...-of-undefined/

For those that wish to use Gutenberg, that is the fix.

:1orglaugh:1orglaugh:1orglaugh well people use mac comps so....

JesseQuinn 04-07-2023 08:39 PM

Quote:

Originally Posted by notinmybackyard (Post 23121160)
We did. At best google seems to hate us 50% of the time. When we want different results it seems like we need to use both a different system and connection.

huh, that's odd

when I tried it just now this is what my goog results looked like:

https://i.imgur.com/O8YGNla.jpg

I discovered Gutenberg's level of suckage when all of a sudden the menu widgets on my most important site stopped working. maybe cuz of my own prior searches the most relevant stuff shows at the top when it comes to the issue you were having

the comments I read in solutions offered for my issue were amusing; the level of dislike of Gutenberg is astoundingly high. to the point that many themes come with the classic editor preinstalled (due to demand I suppose)


wp can be bossy. for ex the 6.2 update auto-updated all the plugins and my theme on one of my sites and completely broke it. took me like a day and half and much cussing to fix. so annoying

anyway, glad you got it resolved


All times are GMT -7. The time now is 06:49 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc