Import page not loading
Hello everyone.
I am at a loss. I decided to load a fresh Vanilla Forums on my website and I have my export file from IPB. The site comes up fine and I can configure and use it. But when I click on the 'Import' menu option in the admin panel I always get this:
Something has gone wrong.
We've run into a problem and are unable to handle this request right now.
Please check back in a little while.
I have verified that all essential folders have 755 permissions. I installed vanilla in the 'forum' directory right off the webroot. The whole site seems to run fine with the exception of the import tool. Now I did recently have my host upgrade my server to SQL5.6+ and PHP7, but I didn't think anything was wrong since installation went fine and the site shows up fine. I have my export file from IPB in the 'uploads' folder.
I just don't know what else to check?
Comments
Might have to do with the max upload filesize. You can check your max upload filesize by making a phpinfo file.
How large is the file you're trying to import?
EDIT: Oops, just realized you're not even able to access the import page.
Enable debug mode to see what the real error is.
How do I enable debug mode in Vanilla? And my import file is a little over 15mb
Ok more info, found out how to enable debug:
mysql_connect has been removed in PHP 7 and should be updated to mysqli_connect
Ok. Thanks Swennet
This is what the code should look like, it comes up now so let me try it:
// We've got to use the mysql_* functions because PDO doesn't support load data local infile well. $dblink = mysqli_connect(c('Database.Host'), c('Database.User'), c('Database.Password'), false, 128); mysqli_select_db(c('Database.Name'), $dblink); $Result = mysqli_query($Sql, $dblink); if ($Result === false) { $Ex = new Exception(mysql_error($dblink)); mysql_close($dblink); throw new $Ex; } mysqli_close($dblink);
All mysql_* in this statement needs to be mysqli_* needs to be changed in the class.importmodel.php file to work in PHP7
So this is a bug and should be fixed for those using PHP7. Dang this thing been killing me for the past few hours glad its fixed
Load worked so that is definitely the fix.