Mark E. Johnson
Member
Hello
I developed a XenForo website that uses database stored procedures and it works perfectly at one host but does not work at a different host. The working host is located here:
http://simracingonline.uk/test/racing/
This page loads data from results that are returned by stored procedures. This is our test site.
Then I installed the site on our Production server and it doesn’t work. I get this error when it runs the stored procedures:
An exception occurred: Mysqli prepare error: Commands out of sync; you can't run this command now
You can see the error here:
http://www.simracingonline.co.uk/racing
After spending hours and hours going through dozens of articles it seems the issue is related to the stored procedure returning multiple data sets. But this is not the case. Each procedure only returns one data set. As a test, I created a very simple stored procedure that has one statement that only returns one integer value. I get the same error message.
Both hosts use php 7.0. The test site (one.com) uses MariaDB 5.5 while the production site (fasthosts.co.uk) uses MySQL 5.6.
Can anyone offer any assistance? Thank you in advance.
Mark
I developed a XenForo website that uses database stored procedures and it works perfectly at one host but does not work at a different host. The working host is located here:
http://simracingonline.uk/test/racing/
This page loads data from results that are returned by stored procedures. This is our test site.
Then I installed the site on our Production server and it doesn’t work. I get this error when it runs the stored procedures:
An exception occurred: Mysqli prepare error: Commands out of sync; you can't run this command now
You can see the error here:
http://www.simracingonline.co.uk/racing
After spending hours and hours going through dozens of articles it seems the issue is related to the stored procedure returning multiple data sets. But this is not the case. Each procedure only returns one data set. As a test, I created a very simple stored procedure that has one statement that only returns one integer value. I get the same error message.
Both hosts use php 7.0. The test site (one.com) uses MariaDB 5.5 while the production site (fasthosts.co.uk) uses MySQL 5.6.
Can anyone offer any assistance? Thank you in advance.
Mark