Jump to content

FatalThrowableError when show page product


Recommended Posts

Hi.

I have some trouble with an upgrade from 1.7.1 to 1.7.6.. 

..so i made a "clean install" 1.7.8, and import Db product, category, images...
 

All product are visible in BackOffice: images, description, cqategory etc.. 

But when i try to save data, it say my "impossible to save" (but modify are saved)

My problem is when i display any product page:

 

 FatalThrowableError

Call to private method ProductControllerCore::getIdProductAttributeByGroupOrRequestOrDefault() from context 'ProductController'

in ProductController.php line 173

at ProductController->getProductPageTitle()in ProductController.php line 144

at ProductController->getTemplateVarProduct()in ProductController.php line 374

at ProductControllerCore->initContent()in Controller.php line 306

at ControllerCore->run()in Dispatcher.php line 518

at DispatcherCore->dispatch()in index.php line 28

 

 

Have i any tables not import? 

INFO:

Versione di PrestaShop: 1.7.8.0

Tema attualmente utilizzato: warehouse

Informazioni sul server: Linux #1 SMP PREEMPT Wed Jun 9 16:10:01 EEST 2021 x86_64

Versione software del server: Apache

Versione di PHP: 7.4.24

Limite di memoria: 768M

Tempo di esecuzione massimo: 120

Dimensione Max. dei file da caricare: 256M

 

 

Versione MySQL: 5.7.32-35-log

Server MySQL: 127.0.0.1

Nome MySQL: dbhmzuqu0ei9iq

Utente MySQL: uh7gmsargrpug

Prefisso delle tabelle: ps_

Motore MySQL: InnoDB

Driver MySQL: DbPDO

 

 

 

 

 

 

Link to comment
Share on other sites

  • 3 months later...

Hello,

Did you find a solution to this problem?

I am exactly in the same situation after an important data migration (around 9000 products) from Prestashop 1.6.1.24 to 1.7.8.2 (clean install) with the MigrationPro module.

I have a blank page when I open a product page on front and in debug mode I have the following error (see also capture herewith) :

(1/1) FatalThrowableError
Type error: Argument 3 passed to HookCore::callHookOn() must be of the type array, null given, called in /home/test/test/classes/Hook.php on line 934
in Hook.php line 412
at HookCore::callHookOn(object(LiteSpeedCache), 'filterProductContent', null)in Hook.php line 934
at HookCore::exec('filterProductContent', null, null, false, true, false, null, true)in ProductController.php line 384
at ProductControllerCore->initContent()in Controller.php line 306
at ControllerCore->run()in Dispatcher.php line 518
at DispatcherCore->dispatch()in index.php line 28

With the difference that I can save the product sheets.

The problem also occurs if I create a new product.

Thanks in advance for any help !

 

Link to comment
Share on other sites

  • 1 year later...
On 1/20/2022 at 6:34 PM, Imaginis said:

I found the source of the problem: the LiteSpeed Cache Module (even when disabled) who is no more compatible with Alysum theme...

https://support.promokit.eu/index.php?do=details&task_id=22221&project=0&order=dateopened&sort=desc&order2=assignedto&sort2=asc

 

On 1/20/2022 at 12:18 PM, Imaginis said:

Hello,

Did you find a solution to this problem?

I am exactly in the same situation after an important data migration (around 9000 products) from Prestashop 1.6.1.24 to 1.7.8.2 (clean install) with the MigrationPro module.

I have a blank page when I open a product page on front and in debug mode I have the following error (see also capture herewith) :

(1/1) FatalThrowableError
Type error: Argument 3 passed to HookCore::callHookOn() must be of the type array, null given, called in /home/test/test/classes/Hook.php on line 934
in Hook.php line 412
at HookCore::callHookOn(object(LiteSpeedCache), 'filterProductContent', null)in Hook.php line 934
at HookCore::exec('filterProductContent', null, null, false, true, false, null, true)in ProductController.php line 384
at ProductControllerCore->initContent()in Controller.php line 306
at ControllerCore->run()in Dispatcher.php line 518
at DispatcherCore->dispatch()in index.php line 28

With the difference that I can save the product sheets.

The problem also occurs if I create a new product.

Thanks in advance for any help !

 

 

Both issues are caused in the filterProductContent hook instance.

For example, in filterProductContent you might have two conflicting modules. Litespeed should be the first one to be connected to since you want to parse cache, the second one might be comments or anything else.

We've mainly saw for our clients modules that were not following Prestashop components and thus not working correctly.

So, to fix that:

1. Go to Design Positions, move the Litespeed on the first line.

2. Clear cache both sides, Prestashop and Litedspeed and try again.

If the problem persists, then try removing one of the modules that were before Litespeed.

 

image.thumb.png.86b4a64fce32cbef2b94c3ffcbf26f88.png

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