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

Broken links after 1.7.5.1 upgrade to 1.7.6.2 #16795

Closed
ibrahimfsasmaz opened this issue Dec 13, 2019 · 43 comments
Closed

Broken links after 1.7.5.1 upgrade to 1.7.6.2 #16795

ibrahimfsasmaz opened this issue Dec 13, 2019 · 43 comments
Labels
1.7.6.2 Affects versions Autoupgrade Module: autoupgrade Bug Type: Bug Faceted search Module: ps_facetedsearch No change required Resolution: issue closed because expected as is

Comments

@ibrahimfsasmaz
Copy link

Hi,

I upgraded my Prestashop 1.7.5.1 to 1.7.6.2 with 1-click upgrade v4.10.
After the upgrade I have faced several 500 error pages at the backend, like Catalog>categories or catalog>discounts>create new rule etc..
And when I have taken the site to debug mode I got errors at the frontend too.

I searched around forums and tried to upgrade "faceted search module "but could not because I have taken error too when I click the upgrade button. I also tried manual upload with filezilla the latest module files from github but not fixed..

How can I fix that issue pls ?

Screen Shot 2019-12-11 at 12 36 05

Screen Shot 2019-12-11 at 12 35 48

@khouloudbelguith
Copy link
Contributor

Hi @ibrahimfsasmaz,

This issue is fixed previously as reported in this ticket: #14617
As a Provisional solution thanks to try with this SQL query

ALTER TABLE `ps_admin_filter` ADD `filter_id` INT NOT NULL ;

Thanks to check & feedback.

@ibrahimfsasmaz
Copy link
Author

Hi @ibrahimfsasmaz,

This issue is fixed previously as reported in this ticket: #14617
As a Provisional solution thanks to try with this SQL query

ALTER TABLE `ps_admin_filter` ADD `filter_id` INT NOT NULL ;

Thanks to check & feedback.

hello,

I tried but nothing change I am getting the same errors

@ibrahimfsasmaz
Copy link
Author

Hi @ibrahimfsasmaz,

This issue is fixed previously as reported in this ticket: #14617
As a Provisional solution thanks to try with this SQL query

ALTER TABLE `ps_admin_filter` ADD `filter_id` INT NOT NULL ;

Thanks to check & feedback.

Screen Shot 2019-12-13 at 23 14 44

@ibrahimfsasmaz
Copy link
Author

Hi @ibrahimfsasmaz,

This issue is fixed previously as reported in this ticket: #14617
As a Provisional solution thanks to try with this SQL query

ALTER TABLE `ps_admin_filter` ADD `filter_id` INT NOT NULL ;

Thanks to check & feedback.

I still display these errors below at debug mode

Screen Shot 2019-12-13 at 23 25 05

Screen Shot 2019-12-13 at 23 24 48

@ibrahimfsasmaz
Copy link
Author

Hi @ibrahimfsasmaz,

This issue is fixed previously as reported in this ticket: #14617
As a Provisional solution thanks to try with this SQL query

ALTER TABLE `ps_admin_filter` ADD `filter_id` INT NOT NULL ;

Thanks to check & feedback.

the upgrade does not work for the faceted search too

Screen Shot 2019-12-13 at 23 36 49

@ibrahimfsasmaz
Copy link
Author

hello ,

is there professional service pls ? Someone can pls fix it for me ?

@ibrahimfsasmaz
Copy link
Author

still could not fix it. I tried manual upgrade to fix but as it is already latest version, I have taken error 28.
so I have no idea for the moment how to fix it...
I need help pls

@khouloudbelguith
Copy link
Contributor

Hi @ibrahimfsasmaz,

Sorry for the late response.
Could you please try to uninstall the ps_facetedsearch module with removing the folder.
You need to clear the cache manually by deleting all the folders into var/cache (prod & dev).
Now, try to navigate to the BO => Module Catalog => Search for the module & install it.
About the second exception: Declaration of HTML, thanks to provide the whole exception (pdf file).
Can you please provide us the log of your upgrade? It can be found in the log.txt file, available in <admin folder>/autoupgrade/tmp/log.txt
Thanks to check and feedback.

@ibrahimfsasmaz
Copy link
Author

Hi @ibrahimfsasmaz,

Sorry for the late response.
Could you please try to uninstall the ps_facetedsearch module with removing the folder.
You need to clear the cache manually by deleting all the folders into var/cache (prod & dev).
Now, try to navigate to the BO => Module Catalog => Search for the module & install it.
About the second exception: Declaration of HTML, thanks to provide the whole exception (pdf file).
Can you please provide us the log of your upgrade? It can be found in the log.txt file, available in <admin folder>/autoupgrade/tmp/log.txt
Thanks to check and feedback.

there is no "faceted search" under module catalog unfortunately.
pls find below the log file

log.txt

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, the upgrade was done ok.

[2019-12-11 00:25:20] All files upgraded
[2019-12-11 01:25:41] Database upgraded

The upgrade of your modules was corrupted due to a cache issue.

[2019-12-11 03:25:48] [INTERNAL] /home/270565.cloudwaysapps.com/qndngdkwzh/public_html/var/cache/prod/classes.php line 3134 - Cannot redeclare class Symfony\Component\Config\ConfigCache

Could you please try to uninstall the blockreassurance module with removing the folder, clear cache & try to install it again from the Module Catalog page.

there is no "faceted search" under module catalog unfortunately.

You can find it in our GitHub repository
https://github.com/PrestaShop/ps_facetedsearch/releases
ps_facetedsearch.zip

Thanks!

@ibrahimfsasmaz
Copy link
Author

blockreassurance

there is no blockreassurance module under Module Catalog

@ibrahimfsasmaz
Copy link
Author

@ibrahimfsasmaz, the upgrade was done ok.

[2019-12-11 00:25:20] All files upgraded
[2019-12-11 01:25:41] Database upgraded

The upgrade of your modules was corrupted due to a cache issue.

[2019-12-11 03:25:48] [INTERNAL] /home/270565.cloudwaysapps.com/qndngdkwzh/public_html/var/cache/prod/classes.php line 3134 - Cannot redeclare class Symfony\Component\Config\ConfigCache

Could you please try to uninstall the blockreassurance module with removing the folder, clear cache & try to install it again from the Module Catalog page.

there is no "faceted search" under module catalog unfortunately.

You can find it in our GitHub repository
https://github.com/PrestaShop/ps_facetedsearch/releases
ps_facetedsearch.zip

Thanks!

I tried to upload the module zip latest version downloaded from
https://github.com/PrestaShop/blockreassurance/releases

But had error message
Oops... Upload failed.

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz,

I tried to upload the module zip latest version downloaded from

Did you try with this zip?
ps_facetedsearch.zip

there is no blockreassurance module under Module Catalog

Did you check if this module is installed in the module Manager page before installing it again?

Thanks!

@ibrahimfsasmaz
Copy link
Author

@ibrahimfsasmaz,

I tried to upload the module zip latest version downloaded from

Did you try with this zip?
ps_facetedsearch.zip

there is no blockreassurance module under Module Catalog

Did you check if this module is installed in the module Manager page before installing it again?

Thanks!

Hi,
this is not the one that I could not install.
https://github.com/PrestaShop/blockreassurance/releases

blockreassurance is not installing

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, from GitHub you need to unzip the folder, run composer install & zip it again.
Thanks to try with this folder
blockreassurance.zip

Thanks!

@ibrahimfsasmaz
Copy link
Author

@ibrahimfsasmaz, from GitHub you need to unzip the folder, run composer install & zip it again.
Thanks to try with this folder
blockreassurance.zip

Thanks!

Hello,
I have uploaded the modules but ;
1- stil having that error 500 at BO>Catalog>Categories & BO>Catalog>Brands&suppliers
2- BO>Customers>CustomerService & BO>Customers>MerchandiseReturn does not display anything

Screen Shot 2019-12-21 at 01 00 48
Screen Shot 2019-12-21 at 01 01 45

@ibrahimfsasmaz
Copy link
Author

ibrahimfsasmaz commented Dec 21, 2019

it looks that there is no other solution than waiting 1.7.6.3 , 1.7.6.2 has lots of bugs

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, could you please provide me a screenshot from the Database, the structure of the table ps_admin_filter
image

Thanks!

@ibrahimfsasmaz
Copy link
Author

@ibrahimfsasmaz, could you please provide me a screenshot from the Database, the structure of the table ps_admin_filter
image

Thanks!

mine is like below, pls have a look

Screen Shot 2019-12-23 at 21 07 38

@ibrahimfsasmaz
Copy link
Author

I changed the filter id as varchar 255 but nothing has changed I still the error below at BO>Catalog>Categories

Screen Shot 2019-12-23 at 21 11 28

Screen Shot 2019-12-23 at 21 11 47

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, I need to check in your structure, that they are not null
image
Thanks!

@ibrahimfsasmaz
Copy link
Author

@ibrahimfsasmaz, I need to check in your structure, that they are not null
image
Thanks!

this is what I display

Screen Shot 2019-12-24 at 14 43 32
Uploading Screen Shot 2019-12-24 at 14.43.39.png…

@ibrahimfsasmaz
Copy link
Author

ok I installed phpmyadmin and this is what I display

Screen Shot 2019-12-24 at 15 35 05

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, could you please check if you have an override of the class HTMLTemplateOrderSlipCore?

Thanks!

@ibrahimfsasmaz
Copy link
Author

@ibrahimfsasmaz, could you please check if you have an override of the class HTMLTemplateOrderSlipCore?

Thanks!

I do not have that override
Screen Shot 2019-12-24 at 18 46 27

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, thanks to check under the pdf folder.

@ibrahimfsasmaz
Copy link
Author

@ibrahimfsasmaz, thanks to check under the pdf folder.

Screen Shot 2019-12-24 at 18 51 02

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, exactly, you have 4 overrides.
image
By default, those files do not exist: https://github.com/PrestaShop/PrestaShop/tree/1.7.6.2/override/classes/pdf
You need to check those overrides are provided by which module & check the compatibility.

Thanks to check & feedback.

@ibrahimfsasmaz
Copy link
Author

@ibrahimfsasmaz, exactly, you have 4 overrides.
image
By default, those files do not exist: https://github.com/PrestaShop/PrestaShop/tree/1.7.6.2/override/classes/pdf
You need to check those overrides are provided by which module & check the compatibility.

Thanks to check & feedback.

I do not think that there is a relation between these files and the problem. Even if I rename/remove them the problem is not fix

Screen Shot 2019-12-24 at 20 13 15

@ibrahimfsasmaz
Copy link
Author

I installed a new module and now it is completely gone.... perfect ! wonderful !
full of bugs

Screen Shot 2019-12-24 at 22 07 40

Screen Shot 2019-12-24 at 22 07 50

Screen Shot 2019-12-24 at 22 08 00

Screen Shot 2019-12-24 at 22 08 10

Screen Shot 2019-12-24 at 22 08 19

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz,

I do not think that there is a relation between these files and the problem. Even if I rename/remove them the problem is not fix

You need to clear the cache manually by deleting all the folders into var/cache (prod & dev) after renaming those files.

I installed a new module and now it is completely gone.... perfect ! wonderful !
full of bugs

What is the exact module did you installed? is it Advanced Pack?

Thanks!

@ibrahimfsasmaz
Copy link
Author

ok I removed all had created a new clone copy from the beginning...

Now what I have is that 1.7.5.1 upgraded to 1.7.6.2 with 1-click upgrade and I have same error.

@khouloudbelguith
Copy link
Contributor

Hi @ibrahimfsasmaz,

In order to avoid problems, remember to check the compatibility of your modules and theme & overrides beforehand.
As explained here: #16795 (comment), try to rename those overrides & you need to clear the cache manually by deleting all the folders into var/cache (prod & dev) after renaming those files.

Thanks!

@ibrahimfsasmaz
Copy link
Author

Hi @ibrahimfsasmaz,

In order to avoid problems, remember to check the compatibility of your modules and theme & overrides beforehand.
As explained here: #16795 (comment), try to rename those overrides & you need to clear the cache manually by deleting all the folders into var/cache (prod & dev) after renaming those files.

Thanks!

nothing works....
Is there another way to migrate to a clean 1.7.6.2 without loosing any data or module or theme pls ?

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, before upgrading, you need to check if your modules & your theme & your overrides are compatible with the new release PS1.7.6.2.
So, if your overrides are not compatibles for example with PS1.7.6.2 => you will have a lot of issues, that's the problem.

In your case, as I said before, some overrides occurs a lot of problems & your last module has issues with PS1.7.6.2 also, you need to contact the module author about this issue.

Thanks!

@ibrahimfsasmaz
Copy link
Author

@ibrahimfsasmaz, before upgrading, you need to check if your modules & your theme & your overrides are compatible with the new release PS1.7.6.2.
So, if your overrides are not compatibles for example with PS1.7.6.2 => you will have a lot of issues, that's the problem.

In your case, as I said before, some overrides occurs a lot of problems & your last module has issues with PS1.7.6.2 also, you need to contact the module author about this issue.

Thanks!

which module do you mean pls ? I can remove that or ask to developer ? If I remove that the issue will be fixed ?

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, according to this comment: #16795 (comment)
You have issues after installing a module, isn't? this module.

Also, you need to check what are the modules that create those overrides
image

Thanks!

@ibrahimfsasmaz
Copy link
Author

ibrahimfsasmaz commented Dec 26, 2019

@ibrahimfsasmaz, according to this comment: #16795 (comment)
You have issues after installing a module, isn't? this module.

Also, you need to check what are the modules that create those overrides
image

Thanks!

no there is a misunderstanding there is no relation with that module..

without installing any module after 1-click upgrade , I had several issues from 1.7.5.1 to 1.7.6.2.
even if I upgrade the faceted search and all other modules the problem has not fixed..

I am having 500 error when I try access BO>Catalog>Categories and several other links at backend..

After all (while nothing has fixed yet) I tried to install a new module to check if it will work or not "Advanced Pack 5 - Create ​​bundles of products"

and after installing the module the site completely stopped working

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz,

After all (while nothing has fixed yet) I tried to install a new module to check if it will work or not "Advanced Pack 5 - Create ​​bundles of products"
and after installing the module the site completely stopped working

About this module, you should contact the module author via your addons.prestashop.com account about these new errors

without installing any module after 1-click upgrade , I had several issues from 1.7.5.1 to 1.7.6.2.
even if I upgrade the faceted search and all other modules the problem has not fixed

At last, you have these issues
image
this is related to your overrides.
You need to clear the cache manually by deleting all the folders into var/cache (prod & dev) after renaming those files.
Thanks!

@ibrahimfsasmaz
Copy link
Author

hello,

we cloned the site and fixed the DB structure.
now we have 1 live site and 1 clone copy;

  • we fixed the clone copy first. the clone copy works perfectly fine
  • we tried to do the exact same fix to live site, after fixing the clone copy. But we are having trouble at live.

at live site the "BO>catalog>discounts>create discount or edit existing" does not work. Sometimes it works for a few minutes than after stops working again.

when we turn on the debug mode, this time discounts work properly but "BO>catalog>categories" stops working.

the only difference between live site (mysql 5.5) and clone copy(mysql 5.6) is the mysql versions.

Do you have any idea about how to fix pls ?

@khouloudbelguith
Copy link
Contributor

@ibrahimfsasmaz, as you can see in this link: https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/
PrestaShop needs the following server configuration in order to run: MySQL v5.6 minimum, a recent version is recommended.
Please upgrade your Mysql server, clear cache, check & feedback.

Thanks!

@khouloudbelguith
Copy link
Contributor

Hi @ibrahimfsasmaz,

Since we had no news from you for more than 30 days, I'll close this ticket. Feel free to open another one if you can give specific details.

Thanks!

@khouloudbelguith khouloudbelguith added No change required Resolution: issue closed because expected as is and removed NMI Status: issue needs more information labels Feb 26, 2020
@khouloudbelguith
Copy link
Contributor

8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.7.6.2 Affects versions Autoupgrade Module: autoupgrade Bug Type: Bug Faceted search Module: ps_facetedsearch No change required Resolution: issue closed because expected as is
Projects
None yet
Development

No branches or pull requests

2 participants