Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 error after updating 8.0.2 to 8.0.3 #32030

Closed
2 tasks done
milor-nl opened this issue Apr 4, 2023 · 4 comments
Closed
2 tasks done

500 error after updating 8.0.2 to 8.0.3 #32030

milor-nl opened this issue Apr 4, 2023 · 4 comments
Labels
Bug Type: Bug Invalid Resolution: issue closed because invalid

Comments

@milor-nl
Copy link

milor-nl commented Apr 4, 2023

Prerequisites

Describe the bug and add attachments

Hello,

After updating with the current 1-click update( v4.15.0 ) I have an 500 error.
My knowledge is about zero so I hope you can help me.

Fatale fout: Uncaught --> Smarty: Kan sjabloon 'file:.' niet laden. /_partials/.tpl' in 'file:_partials/desktop-header.tpl' <-- thrown in /home/pellets/domains/houtpellets.shop/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195

I have replaced 8.0.3 with an backup back to 8.0.2 now

Expected behavior

No response

Steps to reproduce

1- click update v4.15.0
after updating ctrl-F5 - empty cache etc.
result: 500 error FATAL FAULT: Uncaught --> Smarty: Kan sjabloon 'file:.' niet laden. /_partials/.tpl' in 'file:_partials/desktop-header.tpl' <-- thrown in /home/pellets/domains/houtpellets.shop/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 195

PrestaShop version(s) where the bug happened

after update from 8.0.2 to 8.0.3

PHP version(s) where the bug happened

PHP 7.4.33

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

De Houtpellet Shop

@milor-nl milor-nl added Bug Type: Bug New New issue not yet processed by QA labels Apr 4, 2023
@florine2623
Copy link
Contributor

Hello @milor-nl ,

I can't reproduce your issue. I'm upgrading from 8.0.2 to 8.0.3 :
Screenshot 2023-04-05 at 12 02 12

The upgrade is successful :
Screenshot 2023-04-05 at 12 06 16

We use GitHub issues only to discuss about bugs and new features in the PrestaShop project. If you have questions about using PrestaShop or third-party modules, or if you need help with your shop, please consider one of our support plans.

Alternatively, you can also ask for help in the community forums or in the public Slack channel.

Thank you

@florine2623 florine2623 added Invalid Resolution: issue closed because invalid and removed New New issue not yet processed by QA labels Apr 5, 2023
@amazingballzs
Copy link

amazingballzs commented Apr 12, 2023

Hello

I tried to upgrade from prestashop 8.0.2 to 8.0.3, toward the end of the process when the database had to be upgraded I got this error:

CRITICAL [console] Error thrown while running command "prestashop:schema:update-without-foreign --env=prod". Message: "There is no active transaction" ["exception" => PDOException { …},"command" => "prestashop:schema:update-without-foreign --env=prod","message" => "There is no active transaction"]
In Connection.php line 1854:
There is no active transaction
prestashop:schema:update-without-foreign [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--id_shop [ID_SHOP]] [--id_shop_group [ID_SHOP_GROUP]] [--]

Error during database upgrade. You may need to restore your database.
Error upgrading Doctrine schema

Expected behavior

A succesful upgrade, I got the error posted above instead

Steps to reproduce

Just use 1- click update v4.15.0

PrestaShop version(s) where the bug happened
during automatic process to upgrade form PS V 8.0.2 to V 8.0.3

PHP version(s) where the bug happened

PHP 8.1
If your bug is related to a module, specify its name and its version

not module related

============

Post update
I rolled back to a backup I did before updating the "Official GDPR compliance" module.
I launched again the upgrade from PS8.0.2 to 8.0.3, this time worked.

However checking the modules I saw that with the upgrade also the gdpr module ws update to version 2, this caused the database table myprefix_ps_gdpr_log to be renamed into ps_ps_gdpr_log, all works fine apparently, but I suspect that this table's prefix being renamed to ps_ will maybe cause other problems in future when upgrading PS.

============

Further Post update

After the upgrade from 8.0.2 to 8.0.3 regenerating the miniatures caused the theme to fall off with an amount of errors of this kind:

Warning: Trying to access array offset on value of type null in /home/youruser/public_html/var/cache/dev/smarty/compile/transformerlayouts_layout_full_width_tpl/ab/54/14/ab5414f0e8dc1eaecab89319433546d630a49f30_2.file.layout-both-columns.tpl.php on line 51 desktop_device

I can't guess a way to fix this

Also I noticed that after the upgrade from 8.0.2 to 8.0.3 and the automatic update to version 2 of the module "Official GDPR compliance" in the database there are both the tables myprefix_ps_gdpr_log and ps_ps_gdpr_log now, of which the latter is empty, so previous records are on the old log table and I guess new records will go on the new one,,,,,,, I have no idea of what happens with the keys between tables in this situation....., however it is a mess.....

@milor-nl
Copy link
Author

I will follow, perhaps my problems are related.

@matks
Copy link
Contributor

matks commented May 18, 2023

Found another bug report "There is no active transaction" #32350 (comment)

This will maybe help you #32348 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Type: Bug Invalid Resolution: issue closed because invalid
Projects
None yet
Development

No branches or pull requests

4 participants