News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Error converting IPB 1.1 to SMF

Started by kpm21, April 14, 2020, 03:18:54 PM

Previous topic - Next topic

vbgamer45

Try to replace with this function add to enter of convert.php

// https://stackoverflow.com/questions/2853454/php-unserialize-fails-with-non-encoded-characters/5813058#5813058
function mb_unserialize($string)
{
    $string2 = preg_replace_callback(
        '!s:(\d+):"(.*?)";!s',
        function($m){
            $len = strlen($m[2]);
            $result = "s:$len:\"{$m[2]}\";";
            return $result;

        },
        $string);
    return unserialize($string2);
}
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

kpm21

Thank! It works.

But...


Converting polls... Successful.
Converting poll options...
Warning: array_keys() expects parameter 1 to be array, string given in convert.php on line 1303

Warning: array_keys() expects parameter 1 to be array, string given in convert.php on line 1303

Warning: array_keys() expects parameter 1 to be array, string given in convert.php on line 1303

Warning: array_keys() expects parameter 1 to be array, string given in convert.php on line 1303

Warning: array_keys() expects parameter 1 to be array, string given in convert.php on line 1303




Warning: in_array() expects parameter 2 to be array, null given in convert.php on line 2639

Warning: in_array() expects parameter 2 to be array, null given in convert.php on line 2639

Warning: in_array() expects parameter 2 to be array, null given in convert.php on line 2639

Warning: Invalid argument supplied for foreach() in convert.php on line 2651

Warning: array_combine(): Both parameters should have an equal number of elements in /Sources/Subs-Db-mysql.php on line 1491

Notice: Trying to access array offset on value of type null in /Sources/Subs-Db-mysql.php on line 1286
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3

vbgamer45

I ran into that same issue in some cases.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: