Simple Machines Community Forum

SMF Support => Converting to SMF => IPB => Topic started by: TheRaven on October 16, 2014, 11:38:48 PM

Title: Call to a member function read() on a non-object error
Post by: TheRaven on October 16, 2014, 11:38:48 PM
Hey there I'm trying to convert my IPB forum ver. 3.4 and I keep getting this error:
"The converter detected that your host has open_basedir enabled on this server. Please ask your host to disable this setting or try moving the contents of your Invision Power Board 3.2 to the public html folder of your site."
I have imported my IPB database in phpMyAdmin and the password for the database is correct. I'm using the WIP converter.

Edit: Please see my new post, thanks!
Title: Re: open_basedir error
Post by: kat on October 17, 2014, 06:37:20 AM
(http://www.katzy.dsl.pipex.com/SMF/welcome.gif)

Please ask your host to disable this setting

I'd assume that to be a Good PlanTM. ;)
Title: Re:SELECT command denied to user Error
Post by: TheRaven on October 17, 2014, 09:04:05 PM
Hey thank you for the welcome. I fixed that error but I ran into a different error now, I get this one:
Sorry, the database connection information used in the specified installation of SMF cannot access the installation of Invision Power Board 3.2. This may either mean that the installation doesn't exist, or that the Database account used does not have permissions to access it.

The error that was received from the Database was: SELECT command denied to user 'u377293975_upebu'@'10.2.1.16' for table 'ibf_members'

The database user does have all permissions set, so it should have access to use the "select" command. Anyway I could get around this error? Any help would be greatly appreciated. :)
Title: Re: SELECT command denied to user Error
Post by: CoreISP on October 17, 2014, 09:08:29 PM
Ensure that the database user for the SMF database also has access to the database you're trying to convert from, in this case the IPB db.
Title: Re: SELECT command denied to user Error
Post by: TheRaven on October 17, 2014, 09:22:05 PM
Hmm the database should have access. I've imported the IP db to the correct database user in phpMyAdmin according to a few posts I've read in this section. And the password is correct.
Title: Re: SELECT command denied to user Error
Post by: CoreISP on October 19, 2014, 10:51:06 PM
Afaik, the db user for the SMF database has to have access to the IP db; is that the case?
Title: Call to a member function read() on a non-object error
Post by: TheRaven on October 20, 2014, 11:24:18 PM
Well since then I've changed hosts, and I now get this error instead:
Code: [Select]
Warning: dir(D:\Hosting\13060945\html,D:\Hosting\13060945\html) [function.dir]: Access is denied. (code: 5) in D:\Hosting\13060945\html\convert.php on line 520

Warning: dir(D:\Hosting\13060945\html) [function.dir]: failed to open dir: Bad file descriptor in D:\Hosting\13060945\html\convert.php on line 520

Fatal error: Call to a member function read() on a non-object in D:\Hosting\13060945\html\convert.php on line 522
Didn't know if I should create a new topic for this or not, and I'm not sure if this has anything to do with the fact that it's a Windows server not a Linux server. Any suggestions on how to fix this new error?
Title: Re: Call to a member function read() on a non-object error
Post by: margarett on October 21, 2014, 06:07:49 AM
I have no idea... Line 520 of the WIP topic convert.php is
Code: [Select]
$dir = dir(dirname(__FILE__));Which doesn't really depend on any user setting (or SMF setting the same way...)

So I'd say that you need to check with your host what can cause that... That error basically says that convert.php cannot access the folder it's in.
Title: Re: Call to a member function read() on a non-object error
Post by: CoreISP on October 21, 2014, 10:12:08 AM
You switched to a Windows based hosting plan? Very bad idea when running PHP applications.
And indeed, it is a permission error now.
Title: Re: Call to a member function read() on a non-object error
Post by: TheRaven on October 21, 2014, 11:05:15 AM
Alright that's what I thought. I'll switch to a linux host, and run the converter again. :V I'll let you know if I run into anymore errors. Thank you for all the help so far. :)