News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

converter for XMB 1.9.11 failed !

Started by Dblog, August 16, 2011, 03:05:13 AM

Previous topic - Next topic

Dblog

PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /home/account/public_html/smfx/convert_xmb.php on line 224
below is the convert_xmb.php i used which i got from other topic (link)

when i run the convert.php (from official downloads)

Array and string offset access syntax with curly braces is no longer supported in /home/account/public_html/smfx/convert.php on line 2813

Oldiesmann

Is there a way you can use PHP 7.4? That functionality is still supported in 7.4.
Michael Eshom
Christian Metal Fans

Dblog

I tried with php 7.4
At step 1, it converted 5800 posts (out of total 26700) and stopped with error

QuoteConverting posts (this may take some time)...Wrong value type sent to the database. Integer expected. (id_member)

Dblog

and if i force to step 2:

this error occurs and converter stops

QuoteRecalculating forum statistics... Unsuccessful!
This query:

    UPDATE `db_xmb`.smfx_topics
    SET id_first_msg = '',
    id_member_started = '0', id_last_msg = '',
    id_member_updated = '0', num_replies = '-1'
    WHERE id_topic = 722
    LIMIT 1;

Caused the error:

    1062

Doug Heffernan

Quote from: Dblog on July 28, 2022, 12:18:45 AMI tried with php 7.4
At step 1, it converted 5800 posts (out of total 26700) and stopped with error

QuoteConverting posts (this may take some time)...Wrong value type sent to the database. Integer expected. (id_member)

The member id of a post, i.e. the poster id, should be only integer in smf. It looks like xmb might allow a non integer value for the member/poster id. 

The sql file of the converter should be adjusted.

Dblog

Quote from: Doug Heffernan on July 28, 2022, 05:59:37 AM
Quote from: Dblog on July 28, 2022, 12:18:45 AMI tried with php 7.4
At step 1, it converted 5800 posts (out of total 26700) and stopped with error

QuoteConverting posts (this may take some time)...Wrong value type sent to the database. Integer expected. (id_member)

The member id of a post, i.e. the poster id, should be only integer in smf. It looks like xmb might allow a non integer value for the member/poster id. 

The sql file of the converter should be adjusted.

where (which line) should be adjusted and to what

Doug Heffernan

Quote from: Dblog on July 28, 2022, 09:59:58 AMwhere (which line) should be adjusted and to what

I can not say to be honest as I have never used this converter.

Advertisement: