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
Error installing version 8.1 #33524
Comments
Hello @jpcoke , I couldn't reproduce your issue. Have you tried to relaunch the installation ? Waiting for your feedback. |
I've tried to relaunch more than once. Tried to change to php 8.1 on server, enabling all required extensions (the only one i can set more than 3000 is the max_input_vars - recommended is 5000) - and still get the message below: 1: 0 Also have installed phpinfo, can check on :PHP PrestaShop Info.pdf The " app/Resources/translations " folder doesn´t even exist... |
Hello @jpcoke , Could you please provide us with more info ?
You don't know how to get this information? Please read the following article: How to create a bug report. Thank you |
I´ve given already som of this information but here it goes: hostserver setup and configuration PrestaShop version (source) error logs from var folder prod_20230804_installation.log Also tried to change the php 8.1, but same error Curiously i found out that, the zip file with 8.1 version downloaded from github is smaller, than the "prestashop edition basic 8.1 from official website, and thought that this coulbe the problem. Deleted all "previous" installation and started a new one, but got the exact same error. |
This error - and a solution - is discussed here: https://stackoverflow.com/questions/67934455/an-exception-occured-while-establishing-a-connection-to-figure-out-your-platform Note that in the present PS version config.yml includes a file doctrine.yml where this setting should be done. |
This kind of reaction is very unlikely to produce any useful information. It gives the submitter of the bug report a lot of work. Yet when he might submit it it is very unlikely that it will produce any useful information. Most likely nobody will ever study it. So the only effect is deterring people from fielding bug reports. It looks like some kind of server configuration produces this error. It is a quite common problem as on this Github channel alone you can find at least two other reports and elsewhere on the internet it is found too. The error message is clear: "An exception occurred while establishing a connection to figure out your platform version.". This doesn't look like some kind of php or javascript bug. Doctrine has some procedure for finding the platform version and obviously that doesn't produce a result in some circumstances. That seems to happen quite often: Doctrine not only reports the error but also suggests a solution: "You can circumvent this by setting a 'server_version' configuration value. For further information have a look at: doctrine/DoctrineBundle#673". Now it is up to someone here on Github to figure out how Doctrine tries to find the platform version and in which circumstances that fails. And then to find a fix so that everyone can install Prestashop without bothering to fix this kind of problems. |
@musicpanda I can't entirely agree. This is not a support center where you report a bug, and project members reproduce it without any details, putting a lot of time and effort into every reported issue. You are correct that it is an issue reported a few times already, this is why if we have more details about the environment, we could find a pattern and finally reproduce it, because so far, we didn't.
No. That would be the case if you pay for the software and you have paid support. Since it is a common problem reported by the community, we may prioritize it, but I'm writing to let you know how things work there. |
I don't believe that it is appropriate behavior to ask people irrelevant questions like error logs or tell them that you cannot reproduce it when it is obvious that that is irrelevant. Questions should be restricted to relevant information. That this is not a "support center" is not an excuse for abuse. |
When it comes to software development and fixing bugs, it can be incredibly difficult to find a solution if you are unable to replicate the issue. Look, we install PrestaShop every day, it is installed on every single pull request automatically, and automatic campaigns run every day. If something doesn't work in such a major mechanism, it clearly is caused by variables we don't know about, thus those questions about more details :) |
@kpodemski In this case there is an issue on the Doctrine/DBAL Github. That is additional information that gives clues about the problem and how it could be solved. It seems to me that studying that is a more promising approach than some clueless search among server variables. |
@jpcoke One of the suggestions I found when studying this issue is that it could happen with dollar signs in the database password. Can you check for that? |
Looks like a bad configuration to me:
I'd get rid of that message first then check again. |
None... |
I admit i´m no "tecchie", only self taught... but on same server i have up and running 3 websites with no issues ( one in version 1.6.1.24 - and other two in 1.7.8.7) all of them with separate sql databases. I only created new sql and new subdomain folder, and try a clean install of version 8.1 following the steps... If i´m going to inquire my hosting company, i should have an solid issue to show them what they should/could do... otherwise they´ll reply its the PS software issue.... |
Hi |
Could you please indicate me a support center for my issue? But, hey... i´m learning "how things work there.".... maybe start using other e-commerce software.... |
@jpcoke you could verify this problem: with your hosting provider as @ChillCode mentioned |
Hello @jpcoke , I couldn't reproduce your issue. could you please check @kpodemski proposition above ? Waiting for your feedback. |
@hibatallahAouadni Also had SSL activated |
I just watched your video @hibatallahAouadni and noticed you set 127.0.0.1:3306 as database server address, I only ever put "127.0.0.1" or just "localhost". Have no idea what was causing the issue, tried reinstalling it multiple times but only worked right now when I did both of this, hopefully solution will be found soon |
In my case i had, for sure, "localhost" when it worked... the only difference was the demo products (activated)... |
@jpcoke try to disable SSL and check 🙏 |
Now, i have it installed... but i'm pretty sure i tried to disable it, and didn´t worked. |
@jpcoke so it works now? |
It worked tha time, i´ve done the instalation, and never re-tried again (since i had my problem solved) |
Hello guys, Thanks for your feedbacks 🙏 Thanks! |
I protest against this conduct of affairs. As it is a common problem it is important to collect all information about it in one place. For that reason the issue should be kept open and people should be encouraged to add to this issue instead of opening yet another one. It goes beyond my understanding how someone can call the issue "invalid". |
I have exactly the same issue and problem. Just cant install the new 8 version of PS. Any hope for a fix any time soon? |
@serracol did you follow the discussion here? try to use different DB host, or install shop without enabling SSL by default |
Finally and thanks to the community I found a fix: MySQL don't support the MYSQL_ATTR_MULTI_STATEMENTS And I have commented the next lines from the follow files : \classes\db\DbPDO.php line 92 \app\config\doctrine.yml line 22 Also changed the database collation to: utf8mb4_general_ci After this its important to delete cache folder and start again the installation process and it will finish perfectly. |
Finally and thanks to the community I found a fix: MySQL don't support the MYSQL_ATTR_MULTI_STATEMENTS And I have commented the next lines from the follow files : \classes\db\DbPDO.php line 92 \app\config\doctrine.yml line 22 Also changed the database collation to: utf8mb4_general_ci After this its important to delete cache folder and start again the installation process and it will finish perfectly. |
I had to debug this issue for a customer and tracked it down to a wrong PDO driver option declared in The file contained the following options: options:
# PDO::MYSQL_ATTR_INIT_COMMAND
1002: "SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))"
# PDO::MYSQL_ATTR_MULTI_STATEMENTS
1013: '%env(const:runtime:_PS_ALLOW_MULTI_STATEMENTS_QUERIES_)%' Now, the comments suggest that the configurations are meant to set the options controlled by the This is an excerpt of the constants printed using $c = new ReflectionClass(PDO::class);
print_r($c->getConstants());
As you can see, value The value for I would strongly suggest changing the way these options are declared in the configuration file. Referencing constants by value, which I don't think are guaranteed to be stable, is a very bad idea. The issue should be reopened and closed only when a proper fix is implemented. |
I have the same error when instaling but i dont know where to change the 1013 value |
@mtorromeo solution worked perfectly for me. I migrated from another server and found myself with this error |
In my case I have upgraded CPanel and db from mysql 5 to mariadb 10 and resulted same error. |
Prerequisites
Describe the bug and add attachments
During the installation of version 8.1 on a subdomain, created only for that i get the following error.
Server provider specs:
Expected behavior
Normal Installation....
Steps to reproduce
PrestaShop version(s) where the bug happened
8.1
PHP version(s) where the bug happened
7.4
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).
No response
The text was updated successfully, but these errors were encountered: