Wordpress - Visual Editor Broken - wordpress

I'm having a real nightmare trying to debug an issue on a Wordpress Woocommerce website. At some point the Visual Editor tab on the classic editor on both pages and Woocommerce Products has stopped working. I've tried all the obvious fixes including the following:
Deactivating all plugins and switching to Twenty Twenty Theme
Checking profile setting 'disable visual editor' is unchecked (have also tried checking/unchecking)
Adding the line define('CONCATENATE_SCRIPTS', false ); to wp-config
Reuploading the tinymce folder to the wp-includes/js directory
Reinstalling Wordpress
Installing the Advanced Tiny MCE plugin
In the browser console it shows the following error:
Uncaught SyntaxError: Invalid or unexpected token
post.php?post=23835&action=edit:2429 Uncaught ReferenceError: tinyMCEPreInit is not defined
at post.php?post=23835&action=edit:2429
at post.php?post=23835&action=edit:2437
2post.php?post=23835&action=edit:2392 Uncaught ReferenceError: tinyMCEPreInit is not defined
at HTMLDocument.initialize (post.php?post=23835&action=edit:2392)
8editor.min.js?ver=5.8.2:2 Uncaught TypeError: Cannot read properties of undefined (reading 'mceInit')
at n (editor.min.js?ver=5.8.2:2)
at HTMLDocument.<anonymous> (editor.min.js?ver=5.8.2:2)
at C (tinymce.min.js?ver=49110-20201110:2)
at HTMLDocument.d (tinymce.min.js?ver=49110-20201110:2)
Any further help would be greatly appreciated.

Related

Cannot save tags in wordpress - either new or classic editor

This error appears in the console :
Uncaught TypeError: Cannot read properties of undefined (reading 'hasClass')
at HTMLDocument.<anonymous> (wp-auth-check.min.js:2:655)
at HTMLDocument.dispatch (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.1.1:2:38053)
at HTMLDocument.u (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.1.1:2:33916)
at Object.trigger (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.1.1:2:36647)
at HTMLDocument.<anonymous> (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.1.1:2:44416)
at Function.each (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.1.1:2:14543)
at s.fn.init.each (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.1.1:2:11217)
at s.fn.init.trigger (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.1.1:2:44392)
at Object.<anonymous> (heartbeat.min.js:2:2186)
at l (load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.1.1:2:16996)
Latest WP and PHP 8.1
I have no plugins or php errors.
Quick Edit also does not open. Tried all the editor plugins I could find and none work for Quick Edit or tag entry.
Would this be feasible by adding tags directly in the database ? Any help would be appreciated as tags is key to my website.

Undefined array key in wp-includes/class-wp-list-util.php

I'm getting an error when I click on the abandoned cart email link.
Warning: Undefined array key "line_total" in wp-includes/class-wp-list-util.php on line 169
There is 4 method to fix this error:
1: Go To Dashboard -> Update -> On You have the latest version of WordPress, click Re-Install Now.
2: try to use the default WordPress theme to see if your current theme causes this error.
3: Sounds like you are using an incompatible plugin, try disabling plugins one by one to find which plugin causes this error.
4: Finally you may disable wp_debug to ignore this error, go to wp-config.php
and find and set it to disable like the example below:
define( 'WP_DEBUG', false);

when i display my wordpress website post on other php script which resides in the same directory

It is not Displaying it and when enable ERROR REPORTING to Check Issue it Show me Fatal error: Cannot redeclare clean_url() (previously declared in /home/a107853262/public_html/TECHNICALLY-SPEAKING.ORG/small-seo-tools/core/functions.php:237) in /home/a107853262/public_html/TECHNICALLY-SPEAKING.ORG/wp-includes/deprecated.php on line 2039. Thank in Advance
You are trying to re-declare the function clean_url().
Refer this answer
Also clean_url() is deprecated and should be replaced by esc_url(). WordPress Code Reference

Can't access WP-Admin page because of error

I am trying to edit a website I made in Wordpress, but when I go to the example.com/wp-admin/ to get to the Admin,
I get the errors, and so there is no way to go into Wordpress to edit the site.
I even changed the WP Theme back to the default TwentyTen through PHPMyAdmin, but that didn't help.
What can I do? Here is what I get when I try to go to wp-admin page:
Notice: register_uninstall_hook was called incorrectly. Only a static
class method or function can be used in an uninstall hook. Please see
Debugging in WordPress for more information. (This message was added
in version 3.1.) in
/home/content/80/13163980/html/ybk/wp-includes/functions.php on line
3547
Notice: Undefined index: page in
/home/content/80/13163980/html/ybk/wp-content/themes/rt_infuse_wp/functions.php
on line 45
Notice: Undefined index: page in
/home/content/80/13163980/html/ybk/wp-content/themes/rt_infuse_wp/functions.php
on line 55
Warning: Cannot modify header information - headers already sent by
(output started at
/home/content/80/13163980/html/ybk/wp-includes/functions.php:3547) in
/home/content/80/13163980/html/ybk/wp-includes/pluggable.php on line
1178
I just set WP_DEBUG mode to false and that skipped it all and got me to the WP-Admin login page.
Just find the pluggable.php and after <?php please add this ob_start(); and save. That should work.
Warning: Cannot modify header information - headers already sent by
Removing "blank lines" from function.php file and check it now issue is as it is than after check plugin folder >> disable plugin and check
Refresh your Browser, and the original error message Should go away.

ReactJS / WP Picard theme error

Hi I am currently learning and experimenting with the ReactJS / WP theme by Jack Lenox https://github.com/Automattic/Picard I when I have installed it is not displaying the posts & the Console is displaying this message Uncaught TypeError: Cannot read property 'hasClass' of null
Anyone help? Thanks heaps :)
I solved 'Fatal error: Class 'WP_JSON_Comments' not found in .../functions.php line 163' this error by downloading wp-rest plugin from wordpress plugin center, current Version is 1.2.4.https://wordpress.org/plugins/json-rest-api/
Current picard is using wp-rest V1, wp-rest v2 still in beta. refer to: https://github.com/Automattic/Picard/issues/43
Also I updated my wordpress to 4.4.1

Resources