View Issue Details

IDProjectCategoryView StatusLast Update
0000750XMB1Bugspublic2025-01-02 16:06
Reportergpinal Assigned Tomiqrogroove  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version1.9.12.08 
Target Version1.9.12.09Fixed in Version1.9.12.09 
Summary0000750: Install Failure on PHP 7.0
DescriptionHi,

I encountered an issue while manually installing XMB version 1.9.12.08 on CentOS 7 with the following configuration: Apache 2.4, PHP 7.0, and MySQL 5.0.

At step 6 of the installation process, I received the following error:

Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in [[installation-path]]/xmb191208/include/sql.inc.php on line 1540

This error is caused by the use of nullable type declarations (?Type) in function arguments, which were introduced in PHP 7.1. Since PHP 7.0 does not support this feature, the installation fails.

However, the installation documentation for version 1.9.12.08 states that it supports PHP 7.0 (https://docs.xmbforum2.com/index.php?title=Requirements#PHP). Given this, it seems that the documentation might need to be updated to reflect the actual PHP version requirements.

Could you please review this issue and make the necessary changes to either the code or the documentation to ensure compatibility with PHP 7.0?
Steps To Reproduce1. Download the ZIP file from here (https://www.xmbforum2.com/download/XMB-1.9.12.08.zip) and extract it to your desired folder.
2. Open the installation page in your web browser.
3. Follow the on-screen instructions in the installation wizard.
4. However, at Step 6 during installation, the error will occur.
TagsNo tags attached.
MySQL Version
PHP Version7.0
Web Server
Browser
Flags
Original Reporter
SVN Revision
Git Commithttps://github.com/miqrogroove/xmb/commit/be109f4e358c08e1ba2f42b976c0a14e63425ec7

Activities

gpinal

2025-01-01 22:43

reporter  

xmb191208_error.png (73,099 bytes)   
xmb191208_error.png (73,099 bytes)   

miqrogroove

2025-01-02 15:17

administrator   ~0000546

Thank you for the report. I've started work on a newer version of XMB and might have overlooked that detail on the stable branch. I will follow up with a temporary solution.

miqrogroove

2025-01-02 16:06

administrator   ~0000547

Based on the screenshot provided, there was nothing written to the database yet, so it should be an easy fix.

Please download this corrected file. The download button is next to the "Raw" view button.

https://github.com/miqrogroove/xmb/blob/1.9.12/include/sql.inc.php

If you replace that one file, everything should work normally. Also, if the completed config.php file is still on the server you will be able to skip that step next time.

Issue History

Date Modified Username Field Change
2025-01-01 22:43 gpinal New Issue
2025-01-01 22:43 gpinal File Added: xmb191208_error.png
2025-01-02 15:15 miqrogroove Project XMB Hacks 1.9.x => XMB1
2025-01-02 15:15 miqrogroove Category => General
2025-01-02 15:17 miqrogroove Status new => acknowledged
2025-01-02 15:17 miqrogroove Category General => Bugs
2025-01-02 15:17 miqrogroove Product Version => 1.9.12.08
2025-01-02 15:17 miqrogroove PHP Version => 7.0
2025-01-02 15:17 miqrogroove Note Added: 0000546
2025-01-02 15:24 miqrogroove Assigned To => miqrogroove
2025-01-02 15:24 miqrogroove Status acknowledged => assigned
2025-01-02 15:24 miqrogroove Target Version => 1.9.12.09
2025-01-02 15:24 miqrogroove Summary Syntax error, unexpected '?', expecting variable (T_VARIABLE) => Install Failure on PHP 7.0
2025-01-02 16:06 miqrogroove Status assigned => resolved
2025-01-02 16:06 miqrogroove Resolution open => fixed
2025-01-02 16:06 miqrogroove Fixed in Version => 1.9.12.09
2025-01-02 16:06 miqrogroove Git Commit => https://github.com/miqrogroove/xmb/commit/be109f4e358c08e1ba2f42b976c0a14e63425ec7
2025-01-02 16:06 miqrogroove Note Added: 0000547