[wp-trac] [WordPress Trac] #61226: Can't open add new posts page

WordPress Trac noreply at wordpress.org
Thu May 16 03:54:26 UTC 2024


#61226: Can't open add new posts page
--------------------------+-----------------------------
 Reporter:  godsdusk      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.5.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I install wordpress by:



 {{{
 sudo service apache2 start
 sudo service mysql start
 sudo apt update
 sudo apt install -y php libapache2-mod-php php-mysql
 sudo a2enmod mpm_prefork
 sudo a2dismod mpm_event
 sudo service apache2 restart
 sudo apt install -y phpmyadmin
 echo "Include /etc/phpmyadmin/apache.conf" | sudo tee -a
 /etc/apache2/apache2.conf
 sudo service apache2 restart

 curl -O https://wordpress.org/latest.tar.gz
 tar xzvf latest.tar.gz

 mysql -u root -e "CREATE DATABASE wordpress_db;"

 cd /home/labex/project/wordpress
 cp wp-config-sample.php wp-config.php
 }}}




 in wp.config.php:

 {{{
 $_SERVER['HTTPS'] = 'on';
 define('DB_NAME', 'wordpress_db');
 define('DB_USER', 'root');
 define('DB_PASSWORD', '');
 }}}


 then:

 {{{
 sudo cp -r /home/labex/project/wordpress /var/www/html/wordpress
 sudo chown -R www-data:www-data /var/www/html/wordpress
 sudo service apache2 restart
 }}}

 and I open the url and signup successful

 but when I click the add new post button, the web page become empty, and
 the console log:


 {{{
 Uncaught SyntaxError: Unexpected identifier 'https'
 VM427 post-new.php:2 Uncaught TypeError: Cannot read properties of
 undefined (reading 'setCategories')
     at VM427 post-new.php:2:11
 VM434 block-editor.min.js:26 Uncaught TypeError: Cannot read properties of
 undefined (reading '__unstableGetBlockProps')
     at VM434 block-editor.min.js:26:431192
     at VM434 block-editor.min.js:41:131315
     at VM434 block-editor.min.js:41:131359
 (匿名) @ VM434 block-editor.min.js:26
 (匿名) @ VM434 block-editor.min.js:41
 (匿名) @ VM434 block-editor.min.js:41
 VM440 block-library.min.js:12 Uncaught TypeError: Cannot read properties
 of undefined (reading 'privateApis')
     at VM440 block-library.min.js:12:27531
     at VM440 block-library.min.js:14:668882
     at VM440 block-library.min.js:14:668927
 (匿名) @ VM440 block-library.min.js:12
 (匿名) @ VM440 block-library.min.js:14
 (匿名) @ VM440 block-library.min.js:14
 VM444 editor.min.js:12 Uncaught TypeError: Cannot read properties of
 undefined (reading 'SETTINGS_DEFAULTS')
     at VM444 editor.min.js:12:17512
     at VM444 editor.min.js:12:198806
     at VM444 editor.min.js:12:198845
 (匿名) @ VM444 editor.min.js:12
 (匿名) @ VM444 editor.min.js:12
 (匿名) @ VM444 editor.min.js:12
 VM402 private-apis.min.js:2 Uncaught Error: Cannot unlock an undefined
 object.
     at a (VM402 private-apis.min.js:2:2495)
     at VM494 edit-post.min.js:7:38396
     at VM494 edit-post.min.js:7:92887
     at VM494 edit-post.min.js:7:92928
 a @ VM402 private-apis.min.js:2
 (匿名) @ VM494 edit-post.min.js:7
 (匿名) @ VM494 edit-post.min.js:7
 (匿名) @ VM494 edit-post.min.js:7
 VM497 mce-view.min.js:2 Uncaught SyntaxError: missing ) after argument
 list (at VM497 mce-view.min.js:2:5417)
 VM521 post-new.php:3 Uncaught TypeError: Cannot read properties of
 undefined (reading 'registerBlockStyle')
     at VM521 post-new.php:3:12
     at VM521 post-new.php:8:4
 (匿名) @ VM521 post-new.php:3
 (匿名) @ VM521 post-new.php:8
 VM502 format-library.min.js:2 Uncaught TypeError: Cannot read properties
 of undefined (reading '__experimentalLinkControl')
     at VM502 format-library.min.js:2:7416
     at VM502 format-library.min.js:2:23211
 (匿名) @ VM502 format-library.min.js:2
 (匿名) @ VM502 format-library.min.js:2
 VM516 post-new.php:5 Uncaught TypeError: Cannot read properties of
 undefined (reading 'initializeEditor')
     at HTMLDocument.<anonymous> (VM516 post-new.php:5:25)
 }}}


 only the add post has this problem, others works fine

 my os version:

 Linux version 5.4.0-162-generic (buildd at lcy02-amd64-069) (gcc version
 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #179-Ubuntu SMP Mon Aug 14 08:51:31
 UTC 2023

 web browser:
 Google Chrome  124.0.6367.201 (arm64)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61226>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list