General Error:SQL ERROR [ mysql4 ]- After update

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
napsterion
Registered User
Posts: 2
Joined: Tue Sep 25, 2018 10:40 am

General Error:SQL ERROR [ mysql4 ]- After update

Post by napsterion »

Hello

I have a problem with update my phpbb forum to 3.2 version. I used stk clean database script before instalation. After update i've got this error:

General Error:SQL ERROR [ mysql4 ] [0]SQLNo values specified for SQL IN comparison in file

/home/itapa/public_html/forumdieta.pl/phpbb/db/driver/driver.php on line 997
BACKTRACEFILE: (not given by php)
LINE: (not given by php)
CALL: installer_msg_handler()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 997
CALL: trigger_error()

FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 547
CALL: phpbb\db\driver\driver->sql_error()

FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 441
CALL: phpbb\db\driver\driver->sql_in_set()

FILE: [ROOT]/phpbb/db/migration/data/v32x/fix_user_styles.php
LINE: 52
CALL: phpbb\db\driver\factory->sql_in_set()

FILE: (not given by php)
LINE: (not given by php)
CALL: phpbb\db\migration\data\v32x\fix_user_styles->styles_fix()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 714
CALL: call_user_func_array()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 661
CALL: phpbb\db\migrator->run_step()

FILE: [ROOT]/phpbb/db/migrator.php
LINE: 436
CALL: phpbb\db\migrator->process_data_step()

FILE: [ROOT]/phpbb/db/migrator.php LINE: 351 CALL: phpbb\db\migrator->try_apply()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 351 CALL: phpbb\db\migrator->try_apply()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 351 CALL: phpbb\db\migrator->try_apply()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 351 CALL: phpbb\db\migrator->try_apply()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 351 CALL: phpbb\db\migrator->try_apply()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 288 CALL: phpbb\db\migrator->try_apply()
FILE: [ROOT]/phpbb/db/migrator.php LINE: 241 CALL: phpbb\db\migrator->update_do()
FILE: [ROOT]/phpbb/install/module/update_database/task/update.php LINE: 160 CALL: phpbb\db\migrator->update()

FILE: [ROOT]/phpbb/install/module_base.php
LINE: 149
CALL: phpbb\install\module\update_database\task\update->run()

FILE: [ROOT]/phpbb/install/installer.php
LINE: 219
CALL: phpbb\install\module_base->run()

FILE: [ROOT]/phpbb/install/controller/update.php
LINE: 133
CALL: phpbb\install\installer->run()

FILE: (not given by php)
LINE: (not given by php)
CALL: phpbb\install\controller\update->phpbb\install\controller\{closure}()

FILE: [ROOT]/vendor/symfony/http-foundation/StreamedResponse.php
LINE: 111
CALL: call_user_func()

FILE: [ROOT]/vendor/symfony/http-foundation/Response.php
LINE: 383
CALL: Symfony\Component\HttpFoundation\StreamedResponse->sendContent()

FILE: [ROOT]/install/app.php
LINE: 62
CALL: Symfony\Component\HttpFoundation\Response->send()
error.png
Can anyone help me with this?

Best regards!
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26546
Joined: Fri Aug 29, 2008 9:49 am

Re: General Error:SQL ERROR [ mysql4 ]- After update

Post by Mick »

What version are you updating/upgrading from and what package are you using?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
Sortofrobot
Registered User
Posts: 1
Joined: Tue Dec 18, 2018 10:11 am

Re: General Error:SQL ERROR [ mysql4 ]- After update

Post by Sortofrobot »

This is the first Google result so Ițll post here my solution. I had the same error updating from 3.2.1 to 3.2.4. Tried everything, automatic update, and full package. After wasting a few hours, I noticed that in Board Style, "Default style" had no selectable value.

Went to Customize / Styles / prosilver, Activate it. Ran again the installer, DB updated with no errors.

Now it runs on the latest version, mysqli and PHP 7.2 perfectly.
bipolarmorgan
Registered User
Posts: 112
Joined: Tue Jul 07, 2015 7:27 pm
Name: I dont

Re: General Error:SQL ERROR [ mysql4 ]- After update

Post by bipolarmorgan »

Thank you so much for posting this, I was about to waste hours trying to find a solution, but you got me there in seconds. Thanks!!!!
rlaughton
Registered User
Posts: 54
Joined: Fri Jun 29, 2012 7:37 pm
Location: Milton Ontario Canada
Name: Richard Laughton
Contact:

Re: General Error:SQL ERROR [ mysql4 ]- After update

Post by rlaughton »

THANK YOU! THANK YOU! :D

I have a major board to update from 3.0.14 to 3.2.5 (Host changing from PHP5.6 to PHP 7.2) and so I finally have to make the move.

All worked well until I saw that BIG RED BOX with the message that meant absolutely nothing to me. Fortunately I had just RENAMED the INSTALL folder and not deleted it, so I went back and followed your instructions (by WENT TO the author means WENT TO ACP).

2 minutes later it is working perfectly.

Richard
Milton Ontario CANADA
Post Reply

Return to “[3.2.x] Support Forum”