Jump to content

PS Blog error 500 due to language.php


Recommended Posts

Hi,

I'm facing a trouble with PS blog add-on. I caught this error multiple ways but here is one :
Go the Admin
Go to PS blog section
Click on PS blog Configuration
=> Result a 500 page.

Here is the debug text :

/classes/Language.php line 810

I'm running prestashop 1.7.6.3 on a PHP7.1 server.

 

Could you please tell me how to correct this issue ? Thanks a lot !
 

image.png

Link to comment
Share on other sites

  • 4 months later...

Hello,

sorry for my english. For resolve this problem. Replace all $this->l  with $this->trans  in the file psblog.php

example :

//'title' => $this->l('Settings', array(), 'Admin.Global'),
'title' => $this->trans('Settings', array(), 'Admin.Global'),

//$tab1->name[$l['id_lang']] = $this->l('Ps Blog Management');
$tab1->name[$l['id_lang']] = $this->trans('Ps Blog Management');

etc........

bye,

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

  • 3 months later...
On 12/18/2020 at 2:41 PM, geraldT said:

Hello,

sorry for my english. For resolve this problem. Replace all $this->l  with $this->trans  in the file psblog.php

example :

//'title' => $this->l('Settings', array(), 'Admin.Global'),
'title' => $this->trans('Settings', array(), 'Admin.Global'),

//$tab1->name[$l['id_lang']] = $this->l('Ps Blog Management');
$tab1->name[$l['id_lang']] = $this->trans('Ps Blog Management');

etc........

bye,

IT
Salve
io ho provato a sostituire tutte le stringhe ma non funziona, ho la versione PS 1.7.7.2
ci sono altre soluzioni?
Grazie

EN (Google Translate)
Hello
I tried to replace all the strings but it doesn't work, I have PS version 1.7.7.2
are there any other solutions?
Thanks

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