Jump to content

Module Manager - blockHomeSlide or productInfo or blogPost Error


www.you-sport.com

Recommended Posts

i use latest version 8.1.7 and

i get this when trying to access Module Manager in the back end

(even after upgrading from 8.1.5 to 8.1.7)

 

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class blockHomeSlide, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

or 

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class productInfo, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

Enable debug mode

or

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class blogPost, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

Enable debug mode

Edited by thebanker (see edit history)
Link to comment
Share on other sites

  • www.you-sport.com changed the title to Module Manager - blockHomeSlide or productInfo Error

no... i cannot locate who is the developer of those modules

i am not a developer of prestashop yet, but just a user

now i get 

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class blogPost, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

Enable debug mode

Link to comment
Share on other sites

  • www.you-sport.com changed the title to Module Manager - blockHomeSlide or productInfo or blogPost Error
  On 9/27/2024 at 2:43 PM, Divine said:

Hello,

Did you try to contact the developers of those modules ?

Expand  

no... i cannot locate who is the developer of those modules

i am not a developer of prestashop yet, but just a user

now i get 

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class blogPost, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

Enable debug mode

Link to comment
Share on other sites

  On 9/27/2024 at 3:53 PM, thebanker said:

no... i cannot locate who is the developer of those modules

i am not a developer of prestashop yet, but just a user

now i get 

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class blogPost, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

Enable debug mode

Expand  

author PrestaShop SA <contact@prestashop.com>

it is the basic carousel slider on demo theme

Link to comment
Share on other sites

the errors happened with 5 modules but i fixed it !!

i removed the permissions of the folders inside folder modules !

mpm_blog

mpm_contactform

mpm_homeslider

mpm_productinfo

 mpm_topmenu

you may delete or rename these folders...

 

Kisses from Athens Greece !

Edited by www.you-sport.com (see edit history)
Link to comment
Share on other sites

  On 9/27/2024 at 3:53 PM, www.you-sport.com said:

no... i cannot locate who is the developer of those modules

i am not a developer of prestashop yet, but just a user

now i get 

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class blogPost, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

Enable debug mode

Expand  

i just fixed the errors, you can see the topic

 

Kisses !

Link to comment
Share on other sites

  On 9/28/2024 at 1:38 PM, Nickz said:

it is pretty obvious that your modules did not like the update. What error did you try to correct?

 

Expand  

errors like 

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class blockHomeSlide, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

or 

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class productInfo, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

Enable debug mode

or

Oops... looks like an unexpected error occurred.

Compile Error: Cannot declare class blogPost, because the name is already in use

[Symfony\Component\ErrorHandler\Error\FatalError 0]

Enable debug mode

and another 2 similar for the other modules

Edited by www.you-sport.com (see edit history)
Link to comment
Share on other sites

also please check this file 

in modules blockhomeslider

blockhomeslider.php

 

how is your code ? i did some changes

<?php
if (!defined('_PS_VERSION_'))
  exit;

require_once(dirname(__FILE__) . '/classes/blockHomeSlide.php');

//use PrestaShop\PrestaShop\Core\Module\WidgetInterface;

class blockhomeslider extends Module //implements WidgetInterface
{

 

in short words i removed the WidgetInterface...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...