Better Preview

Error 500 in Content

1 year 2 months ago #76159

Davide Mascetti's Avatar Davide Mascetti

Hello,
I have everything updated, but when I go tho content manager I received error 500.

If I disable the plugin, it works.

Thanks a lot,
Davide

1 year 2 months ago #76160

Peter van Westen's Avatar Peter van Westen Admin

Please check what php error breaks the page.
You can see php errors by setting the Error Reporting to 'Developer' in the Global Configuration:


Or take a look at your php error log. Or enable php error reporting (via .htaccess for example).

1 year 2 months ago #76161

Davide Mascetti's Avatar Davide Mascetti

Hi Peter,

thank you very much, this is what I get:

Fatal error: Cannot declare class MenusModelMenutypes, because the name is already in use in /httpdocs/administrator/components/com_menus/models/menutypes.php on line 621


Thanks,
Davide

1 year 2 months ago #76164

Peter van Westen's Avatar Peter van Westen Admin

Weird, not something Better Preview specifically does.
Maybe some clash with another 3rd party extension.
Can you reproduce the issue on a clean Joomla installation?

1 year 2 months ago #76206

Davide Mascetti's Avatar Davide Mascetti

Hi,

it works... probably a plugin crashes.Any idea?


Thanks.

1 year 2 months ago #76210

Peter van Westen's Avatar Peter van Westen Admin

Your guess is as good as mine.

2 months 2 weeks ago #83194

Toni56's Avatar Toni56

Hi
I got the same message. I searched for MenusModelMenutypes in php files and got 6 results:
administrator\components\com_menus\models\fields\menutype.php
administrator\components\com_menus\models\menutypes.php
plugins\system\betterpreview\src\Component\Link.php
plugins\system\betterpreview\src\Component\Menus\Item\Link.php
plugins\system\vmuikit_override\menutypes.php
plugins\system\vmuikit_override\vmuikit_override.php

When I disable vmuikit OR betterpreview, it works. When both of them are enabled, it doesn't work

2 months 2 weeks ago #83196

Peter van Westen's Avatar Peter van Westen Admin

Better Preview only uses the MenusModelMenutypes class, it doesn't create it.
So it looks like the issue is that vmuikit is trying to override a class that already exists.
You will have to ask them if they can fix this.