givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
239 stars 49 forks source link

Page editor not loading, Cannot read properties of undefined (reading 'menu') #69

Open CipherBytesOfDust opened 5 months ago

CipherBytesOfDust commented 5 months ago

Hi, getting the following error when opening the page editor..

Uncaught TypeError: Cannot read properties of undefined (reading 'menu') at new MenuComponent (menu.js:66:26) at menu.js:91:21

The loading spinner remains and the page to edit does not load.

Thanks

givanz commented 5 months ago

Hi

It looks like Vvveb.data is null but I'm unable to make it null even if I delete all menus, can you please paste the line that begins with Vvveb.data from the page view source (CTRL + U).

Can you also check php error log from tools > system info > error log if there are any errors?

CipherBytesOfDust commented 5 months ago

The path I'm on is - /admin/?module=editor/editor&url=/&template=index.html but vvveb.data is not found in the source source.txt

PHP error log is empty :s

givanz commented 5 months ago

Thanks for the source file, I was able to track down the issue to some unclosed script tags that on some php configurations it seems that it causes the script tag to be removed.

The fix is available for download in the latest.zip, you will need to update at least public/admin and system folders and clear cache.

CipherBytesOfDust commented 5 months ago

I have not had time to review this yet but thanks for the quick replies and potential solution, will let you know how I get on. 👍🏼

CipherBytesOfDust commented 5 months ago

Thanks for the source file, I was able to track down the issue to some unclosed script tags that on some php configurations it seems that it causes the script tag to be removed.

The fix is available for download in the latest.zip, you will need to update at least public/admin and system folders and clear cache.

Updated files, cleared cache but the issue persists

givanz commented 4 months ago

The source file is identical without any change, Vvveb.data is still missing?

Can you please delete manually all files inside /storage/compiled-templates/ to make sure that templates are regenerated?

If it still doesn't work please provide PHP version and if possible libxml version (from phpinfo) and I will try to reproduce the issue.