Jump to content

siarlis's Content

There have been 6 items by siarlis (Search limited from 30-Sep 19)


Sort by                Order  

#328226 Random 500 Internal Server Error

Posted by siarlis on 29 May 2020 - 08:05 AM in Issues & Troubleshooting

Hi again, 

 

To anyone  has the same problem i've found a solution by truncating the sessions table. 

I can not understand why the problem exists in that table.  - maybe corrupted data ?

 

Making a simple test by creating a clone of the website helped me to realize the issue. 




#328200 Random 500 Internal Server Error

Posted by siarlis on 28 May 2020 - 01:59 PM in Issues & Troubleshooting

Hi, 

 

No luck with this, I am still getting the following errors: 

session_decode(): Cannot call session save handler in a recursive manner  in /app/Tygh/Web/Session.php on line 653

session_decode(): Session object destruction failed in /app/Tygh/Web/Session.php on line 653

session_decode(): Failed to decode session object. Session has been destroyed in app/Tygh/Web/Session.php on line 653
Undefined index: settings in app/Tygh/Session.php on line 257



#328191 Random 500 Internal Server Error

Posted by siarlis on 28 May 2020 - 10:24 AM in Issues & Troubleshooting

Hello, 

 

I use the database for backend session. 

 

I've tried to clear the cache and repair the session tables in mysql.

 

we use CS-cart version 4.7.4 with php 7.1

We host the website on a dedicated server.

 

Thank you for your response. 




#328189 Random 500 Internal Server Error

Posted by siarlis on 28 May 2020 - 09:13 AM in Issues & Troubleshooting

Hello, 

 

Suddenly i start to receive a 500 Error . The problem occurs randomly . 

 

I've checked the error logs and it seems that there is a problem with the session variables ? 

 

Here is the log: 

 
[28-May-2020 08:55:08 UTC] PHP Notice:  Undefined index: settings in app/Tygh/Session.php on line 257
[28-May-2020 08:55:08 UTC] PHP Warning:  session_decode(): Cannot call session save handler in a recursive manner in app/Tygh/Web/Session.php on line 653
[28-May-2020 08:55:08 UTC] PHP Warning:  session_decode(): Session object destruction failed in app/Tygh/Web/Session.php on line 653
[28-May-2020 08:55:08 UTC] PHP Warning:  session_decode(): Failed to decode session object. Session has been destroyed in app/Tygh/Web/Session.php on line 653
[28-May-2020 08:55:08 UTC] PHP Notice:  Undefined index: settings in app/Tygh/Session.php on line 257
[28-May-2020 08:55:08 UTC] PHP Warning:  session_decode(): Failed to decode session object. Session has been destroyed in app/Tygh/Web/Session.php on line 653
[28-May-2020 08:55:08 UTC] PHP Notice:  Undefined index: settings in app/Tygh/Session.php on line 257
[28-May-2020 08:55:08 UTC] PHP Fatal error:  Allowed memory size of 5368709120 bytes exhausted (tried to allocate 12288 bytes) in app/Tygh/Backend/Database/Mysqli.php on line 91
 
Does anyone have the same problem ? 
 
Thank you for your time. 



#317063 Banners Addon Tpl Hooks

Posted by siarlis on 26 June 2019 - 06:41 AM in Developers' Corner

Hello Again,

 

Thank you for your responses Ecomlabs , Soft Solid ,

 

The path was correct just forgot to write down the addon directory.

 

The general_content.post.tpl and general_content.pre.tpl Hooks not work for some reason ! Just return a blank template.

 

The solution was to use the general_content.override.tpl and Refresh the Banner Addon from Manage-addons section.

 

Without refreshing the addon – Clearing the cache from admin panel or deleting the /var/cache folder doesn’t have any result.

 

Thank you !




#317048 Banners Addon Tpl Hooks

Posted by siarlis on 25 June 2019 - 02:50 PM in Developers' Corner

Does anyone have successfully used the TPL hooks from banners addons ?

 

I am trying to use the banners:general_content hook that exists inside (design/backend/templates/addons/banners/views/banners/update.tpl) but without any luck.

 

I have tried to place the hook inside

design/backend/templates/my_changes/hooks/banners/general_content.tpl but it returns a blank page …  - No errors in logs

 

I have successfully created a PHP hook for get_banner_data function but template hooks refuses to work .

 

Any idea ?