Advertisement:

Author Topic: Call to a member function read() on a non-object error  (Read 9385 times)

Offline TheRaven

  • Newbie
  • *
  • Posts: 5
Call to a member function read() on a non-object error
« 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!
« Last Edit: October 20, 2014, 11:24:55 PM by TheRaven »

kat

  • Guest
Re: open_basedir error
« Reply #1 on: October 17, 2014, 06:37:20 AM »


Please ask your host to disable this setting

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

Offline TheRaven

  • Newbie
  • *
  • Posts: 5
Re:SELECT command denied to user Error
« Reply #2 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. :)

Offline CoreISP

  • Server Admin
  • Server Team
  • SMF Super Hero
  • *
  • Posts: 16,987
  • Gender: Male
  • CoreISP.net
    • liroyvh on LinkedIn
    • @liroyvh on Twitter
    • CoreISP Corporation :: WebHosting, Dedicated Servers, and more!
Re: SELECT command denied to user Error
« Reply #3 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.
- CoreISP.net Corporation -
  WebHosting, Colocation, Domain Registration & Network Services
- DedicatedBox.us Servers -
  Low priced Servers in a high-quality Network, the place for all your (advanced) server needs.
  We specialize in hosting big boards. Contact us!

((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.

Offline TheRaven

  • Newbie
  • *
  • Posts: 5
Re: SELECT command denied to user Error
« Reply #4 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.

Offline CoreISP

  • Server Admin
  • Server Team
  • SMF Super Hero
  • *
  • Posts: 16,987
  • Gender: Male
  • CoreISP.net
    • liroyvh on LinkedIn
    • @liroyvh on Twitter
    • CoreISP Corporation :: WebHosting, Dedicated Servers, and more!
Re: SELECT command denied to user Error
« Reply #5 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?
- CoreISP.net Corporation -
  WebHosting, Colocation, Domain Registration & Network Services
- DedicatedBox.us Servers -
  Low priced Servers in a high-quality Network, the place for all your (advanced) server needs.
  We specialize in hosting big boards. Contact us!

((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.

Offline TheRaven

  • Newbie
  • *
  • Posts: 5
Call to a member function read() on a non-object error
« Reply #6 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?

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Call to a member function read() on a non-object error
« Reply #7 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.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

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

Offline CoreISP

  • Server Admin
  • Server Team
  • SMF Super Hero
  • *
  • Posts: 16,987
  • Gender: Male
  • CoreISP.net
    • liroyvh on LinkedIn
    • @liroyvh on Twitter
    • CoreISP Corporation :: WebHosting, Dedicated Servers, and more!
Re: Call to a member function read() on a non-object error
« Reply #8 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.
- CoreISP.net Corporation -
  WebHosting, Colocation, Domain Registration & Network Services
- DedicatedBox.us Servers -
  Low priced Servers in a high-quality Network, the place for all your (advanced) server needs.
  We specialize in hosting big boards. Contact us!

((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.

Offline TheRaven

  • Newbie
  • *
  • Posts: 5
Re: Call to a member function read() on a non-object error
« Reply #9 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. :)