The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
MySQL vs. MySQLi (and also PHP7) - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: MySQL vs. MySQLi (and also PHP7) (/showthread.php?tid=18348)



MySQL vs. MySQLi (and also PHP7) - HRZ_UniBi - Dec 9th, 2016

Just some more words about the handling of MySQL not only in PHP7 but also for current releases of PHP5.x...

Since Formtools uses the deprecated php-mysql extension and not the more robust and future proof php-mysqli, we've made an attempt using the MySQLConverterTool located at https://github.com/philip/MySQLConverterTool.

All in all, the conversion worked (with some minor warnings), but since we've only made a quick and dirty test run, these results should be taken with a grain of salt.

Has anyone else have experience with such a conversion?

Regards.


RE: MySQL vs. MySQLi (and also PHP7) - paullittrell - Dec 21st, 2016

I would be interested to know if you where able to get it running on PHP7 once you completed the conversion. As I had stumbled across that tool as well, and was thinking of giving it a go as well.

Paul

(Dec 9th, 2016, 5:54 AM)HRZ_UniBi Wrote: Just some more words about the handling of MySQL not only in PHP7 but also for current releases of PHP5.x...

Since Formtools uses the deprecated php-mysql extension and not the more robust and future proof php-mysqli, we've made an attempt using the MySQLConverterTool located at https://github.com/philip/MySQLConverterTool.

All in all, the conversion worked (with some minor warnings), but since we've only made a quick and dirty test run, these results should be taken with a grain of salt.

Has anyone else have experience with such a conversion?

Regards.



RE: MySQL vs. MySQLi (and also PHP7) - mrchuck - May 12th, 2017

Has anyone tried the php7 shim?
https://github.com/dshafik/php7-mysql-shim

Well I just did and it doesn't seem to work even though it appears to be getting included properly. But I could well be doing something else wrong.
Sigh.


RE: MySQL vs. MySQLi (and also PHP7) - mrchuck - May 12th, 2017

Just tried the converter as well.
Most files seem to be converted to the tool's satisfaction, but formtools still doesn't work: still shows a blank install page.
There were two files with warnings that I don't understand:

Warning: /var/www/html/formtools/install/files/code.php (24/24, 8)
Summary
Found Converted Warnings/Errors File update File backup Length
24 24 8 Yes Yes 22276
Warnings/Errors
Line Message
265 [Line 265] Cannot analyze server parameter to extract host, socket and port! Conversion cannot be performed automatically. You must manually check the result of the conversion.
266 [Line 266]
365 [Line 365] Cannot analyze server parameter to extract host, socket and port! Conversion cannot be performed automatically. You must manually check the result of the conversion. You're calling mysql_connect() twice with the same parameters. We don't know for sure if you want a new connection or reuse the old connection. You must check your code.
375 [Line 375]
518 [Line 518] Cannot analyze server parameter to extract host, socket and port! Conversion cannot be performed automatically. You must manually check the result of the conversion. You're calling mysql_connect() twice with the same parameters. We don't know for sure if you want a new connection or reuse the old connection. You must check your code.
519 [Line 519]
590 [Line 590] Cannot analyze server parameter to extract host, socket and port! Conversion cannot be performed automatically. You must manually check the result of the conversion. You're calling mysql_connect() twice with the same parameters. We don't know for sure if you want a new connection or reuse the old connection. You must check your code.
591 [Line 591]

But the converted code doesn't look to me like it's calling mysql_connect twice:
365: $link = @($GLOBALS["___mysqli_ston"] = mysqli_connect($hostname, $username, $password)) or $db_connection_error = mysqli_error($GLOBALS["___mysqli_ston"]);

By the same token, I have no idea if this should work or not.

And:
Warning: /var/www/html/formtools/global/code/general.php (13/13, 3)
Summary
Found Converted Warnings/Errors File update File backup Length
13 13 3 Yes Yes 57509
Warnings/Errors
Line Message
35 [Line 35] Cannot analyze server parameter to extract host, socket and port! Conversion cannot be performed automatically. You must manually check the result of the conversion.
37 [Line 37] Cannot analyze server parameter to extract host, socket and port! Conversion cannot be performed automatically. You must manually check the result of the conversion.
45 [Line 45]

All these type warnings concern lines like these:
$link = ($GLOBALS["___mysqli_ston"] = mysqli_connect($g_db_hostname, $g_db_username, $g_db_password));
Which looks sort of OK to me but might not be.
At any rate, the thing still isn't working and I look forward to the mysqli powered version.


RE: MySQL vs. MySQLi (and also PHP7) - mrchuck - May 12th, 2017

OK gave up on php7 and scorched the earth with apt-get purge.
Then installed php5.5 from source, following the installation instructions carefully.
Rebooted.
Voila! It works. Very nice too.
This would appear to be the only path for ubuntu 16 users. Happy to be proved wrong if someone knows another way.


RE: MySQL vs. MySQLi (and also PHP7) - yejefol - Jul 8th, 2020

MySQL is the old database driver, and MySQLi is the Improved driver. The "i" stands for "improved" so it is MySQL improved.
comic con Outfits