News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Call to a member function read() on a non-object error

Started by TheRaven, October 16, 2014, 11:38:48 PM

Previous topic - Next topic

TheRaven

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!

kat



Quote from: TheRaven on October 16, 2014, 11:38:48 PMPlease ask your host to disable this setting

I'd assume that to be a Good PlanTM. ;)

TheRaven

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. :)

LiroyvH

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.
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

TheRaven

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.

LiroyvH

Afaik, the db user for the SMF database has to have access to the IP db; is that the case?
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

TheRaven

Well since then I've changed hosts, and I now get this error instead:
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?

margarett

I have no idea... Line 520 of the WIP topic convert.php is
$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.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

LiroyvH

You switched to a Windows based hosting plan? Very bad idea when running PHP applications.
And indeed, it is a permission error now.
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

TheRaven

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. :)

Advertisement: