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:11VM434 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:41VM440 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:14VM444 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:12VM402 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:92928a @ VM402 private-apis.min.js:2(匿名) @ VM494 edit-post.min.js:7(匿名) @ VM494 edit-post.min.js:7(匿名) @ VM494 edit-post.min.js:7VM497 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:8VM502 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:2VM516 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 finemy os version:Linux version 5.4.0-162-generic (buildd@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 2023web browser:Google Chrome 124.0.6367.201 (arm64)
I install wordpress by:
sudo service apache2 startsudo service mysql startsudo apt updatesudo apt install -y php libapache2-mod-php php-mysqlsudo a2enmod mpm_preforksudo a2dismod mpm_eventsudo service apache2 restartsudo apt install -y phpmyadminecho "Include /etc/phpmyadmin/apache.conf" | sudo tee -a /etc/apache2/apache2.confsudo service apache2 restartcurl -O https://wordpress.org/latest.tar.gztar xzvf latest.tar.gzmysql -u root -e "CREATE DATABASE wordpress_db;"cd /home/labex/project/wordpresscp wp-config-sample.php wp-config.php
in 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/wordpresssudo chown -R www-data:www-data /var/www/html/wordpresssudo service apache2 restart
and I open the url and signup successful