Jump to content

Template install error


illohacker

Recommended Posts

I´m trying to install wharehouse theme but its impossible, it show me this error.

Warning: array_merge(): Argument #2 is not an array in /usr/home/unabodamagica.com/web/src/Core/Module/HookConfigurator.php on line 87 Warning: in_array() expects parameter 2 to be array, null given in /usr/home/unabodamagica.com/web/src/Core/Module/HookConfigurator.php on line 42 

i need help, thanks.

Link to comment
Share on other sites

Usually it is best to ask the creator of bought software for help. Even Warehouse - the most used PS template - is a small fraction of all installations. So the number of people here that knows about it is tiny.

There is also a problem with your error report: it is too general. It tells us only that there is a problem with the hooks of some module. If you could tell exactly when you get the error and what the context was it might be possible to determine which module caused the trouble.

Link to comment
Share on other sites

im try to talk with developer but the license expired.

Warning: in_array() expects parameter 2 to be array, null given in /usr/home/unabodamagica.com/web/src/Core/Module/HookConfigurator.php on line 42

if (in_array($value, $uniqueModuleList)) {

Warning: array_merge(): Argument #2 is not an array in /usr/home/unabodamagica.com/web/src/Core/Module/HookConfigurator.php on line 90

       

       $list = array_merge($list, $modules);

Warning: Invalid argument supplied for foreach() in /usr/home/unabodamagica.com/web/src/Core/Module/HookConfigurator.php on line 55

foreach ($modules as $key => $module) {

Warning: Cannot modify header information - headers already sent by (output started at /usr/home/unabodamagica.com/web/src/Core/Module/HookConfigurator.php:42) in /usr/home/unabodamagica.com/web/classes/Tools.php on line 209

 

header('Location: '.$url);

 

more details of theme,yml

theme.yml

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

5 hours ago, musicmaster said:

Question: what is your Prestashop version and what is your PHP version?

In a case like this I would print diagnostic information. So in the case of your first example I would put a few lines before that line. Something like


if ($uniqueModuleList == NULL) { echo ...; die();}

 

Where i need put this line.

PS 1.7.2.5 and PHP 7

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

1 hour ago, musicmaster said:

Please re-read my previous post: "I would put a few lines before that line".

When i add it show me 

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '}', expecting ',' or ';' in /usr/home/unabodamagica.com/web/src/Core/Module/HookConfigurator.php:66 Stack trace: #0 /usr/home/unabodamagica.com/web/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/usr/home/unabo...') #1 [internal function]: Composer\Autoload\ClassLoader->loadClass('PrestaShop\\Pres...') #2 /usr/home/unabodamagica.com/web/src/Core/Addon/Theme/ThemeManagerBuilder.php(63): spl_autoload_call('PrestaShop\\Pres...') #3 /usr/home/unabodamagica.com/web/controllers/admin/AdminThemesController.php(56): PrestaShop\PrestaShop\Core\Addon\Theme\ThemeManagerBuilder->build() #4 /usr/home/unabodamagica.com/web/classes/controller/Controller.php(142): AdminThemesControllerCore->__construct(false, false) #5 /usr/home/unabodamagica.com/web/classes/Dispatcher.php(371): ControllerCore::getController('AdminThemesCont...') #6 /usr/home/unabodamagica.com/web/tienda/index.php(95): DispatcherCore-> in /usr/home/unabodamagica.com/web/app/bootstrap.php.cache on line 3231

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...