geodesicsolutions-community / geocore-community

GeoCore Community, open source classifieds and auctions software
MIT License
9 stars 6 forks source link

PHP 8 Error on front page when share fees addon is enabled #89

Closed jonyo closed 2 years ago

jonyo commented 2 years ago

This should be fixed as it indicates a bug, maybe php 7 is not strict enough to notice the bug.

Error:

ValueError: mysqli_stmt::bind_param(): Argument #1 ($types) cannot be empty in /var/www/html/src/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php:1241
Stack trace:
#0 /var/www/html/src/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php(1241): mysqli_stmt->bind_param('')
#1 /var/www/html/src/vendor/adodb/adodb-php/adodb.inc.php(1539): ADODB_mysqli->_query('SELECT * FROM g...', Array)
#2 /var/www/html/src/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php(1135): ADOConnection->_Execute('SELECT * FROM g...', Array)
#3 /var/www/html/src/vendor/adodb/adodb-php/adodb.inc.php(2274): ADODB_mysqli->execute('SELECT * FROM g...', Array)
#4 /var/www/html/src/classes/php5_classes/DataAccess.class.php(458): ADOConnection->GetRow('SELECT * FROM g...', Array)
#5 /var/www/html/src/addons/share_fees/util.php(146): DataAccess->GetRow('SELECT * FROM g...', Array)
#6 /var/www/html/src/addons/share_fees/util.php(36): addon_share_fees_util->getInfo()
#7 /var/www/html/src/classes/php5_classes/Singleton.class.php(53): addon_share_fees_util->__construct()
#8 /var/www/html/src/classes/php5_classes/Addon.class.php(178): Singleton::getInstance('addon_share_fee...')
#9 /var/www/html/src/classes/php5_classes/Addon.class.php(1136): geoAddon->loadCoreEvents()
#10 /var/www/html/src/addons/geographic_navigation/app_top.php(27): geoAddon::getRegistry('geographic_navi...')
#11 /var/www/html/src/app_top.common.php(154): require_once('/var/www/html/s...')
#12 /var/www/html/src/app_top.main.php(5): require_once('/var/www/html/s...')
#13 /var/www/html/src/index.php(10): require_once('/var/www/html/s...')
#14 {main}