DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 19, 2018, 10:37:02 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Restore Character error  (Read 2734 times)
0 Members and 1 Guest are viewing this topic.
ShadowRaven
Mod God
*****
Offline Offline

Posts: 805


Silence is a virtue...


View Profile WWW
« on: October 29, 2005, 09:16:28 PM »

not sure if this is a bug or not, but here it is....

I had installed and activated the character restorer. just now I tried restoring a character and I get this:

Fatal error: Call to a member function on a non-object in /home/ravensl/public_html/modules/charrestore.php on line 149

 line 149 is:

while (($entry = $d->read())!==false){

Shouldn't it be :

while (($entry = $id->read())!==false){        

?

EDIT: Nope, that didn't work either
« Last Edit: October 29, 2005, 09:26:12 PM by ShadowRaven » Logged

Kendaer
Guest
« Reply #1 on: October 30, 2005, 11:29:04 AM »

Actually, that error is caused by the directory you are trying to use for character restores not existing.

Logged
Chewie
Captain of the Guard
***
Offline Offline

Posts: 154

Ignore this.


View Profile
« Reply #2 on: April 10, 2007, 11:07:04 AM »

I'm getting the same error and I'm not sure I understand.  In ShadowRaven's case, are you saying that the path: "/home/ravensl/public_html/modules/charrestore.php" is incorrect?
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5479



View Profile WWW
« Reply #3 on: April 10, 2007, 11:16:13 AM »

I'm getting the same error and I'm not sure I understand.  In ShadowRaven's case, are you saying that the path: "/home/ravensl/public_html/modules/charrestore.php" is incorrect?

Where are you saving the character restore files at?  That string is merely pointing to a file (charrestore.php), not to a folder containing the files.
Logged

Play the latest beta version here on DragonPrime
Kalisiin
Guest
« Reply #4 on: April 10, 2007, 02:33:33 PM »

It could also be that the file exists - but NOT where the program is looking for it.  Thus, it says the file doesn't exist.  If one installed the file into the wrong folder, this would happen.

The error string is telling you where it EXPECTS to find the file.  So...you should simply install the file where it expects to find it, and that would likely solve the problem.
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5479



View Profile WWW
« Reply #5 on: April 10, 2007, 02:53:35 PM »

It could also be that the file exists - but NOT where the program is looking for it.  Thus, it says the file doesn't exist.  If one installed the file into the wrong folder, this would happen.

The error string is telling you where it EXPECTS to find the file.  So...you should simply install the file where it expects to find it, and that would likely solve the problem.

No, this is not the case here. 

"/home/ravensl/public_html/modules/charrestore.php" is the module which allows you to restore expired characters.  It is NOT a character restoration file, nor is it a proper method of specifying a folder.  The complete error as posted by ShadowRaven indicates that this file attempted to call a 'non-object' - in this case, a non-existent folder.

By default, charrestore will look in the folder "/logd_snapshots" for the character files.  If that folder does not exist, then it generates this error.  The folder can be changed in the module settings, but in any event the admin MUST create that folder before the module will work.
Logged

Play the latest beta version here on DragonPrime
Nightborn
Guest
« Reply #6 on: April 10, 2007, 03:08:25 PM »

Actually, that error is caused by the directory you are trying to use for character restores not existing.



check the setting. is this directy CHMODded to 777? if not, there is the error. permission denied = file unreadable.

Logged
ShadowRaven
Mod God
*****
Offline Offline

Posts: 805


Silence is a virtue...


View Profile WWW
« Reply #7 on: April 10, 2007, 04:34:57 PM »

By default, charrestore will look in the folder "/logd_snapshots" for the character files.  If that folder does not exist, then it generates this error.  The folder can be changed in the module settings, but in any event the admin MUST create that folder before the module will work.

Exactly. Since my last post here, I have moved to a dedicated server and I have the snapshot folder outside of the public_html dir(non web accessable).
so the correct path would be for me now:

../temp/snapshots

for a folder inside of the public_html dir, it would look like, ../snapshots/
and as Nightborn said, make sure it has 777 permissions.


Logged

Kalisiin
Guest
« Reply #8 on: April 10, 2007, 07:29:43 PM »

well, shows what I know!  LOL.

Well, that was what it looked like to me - I'm glad someone else was able to provide the correct answer!
Logged
Chewie
Captain of the Guard
***
Offline Offline

Posts: 154

Ignore this.


View Profile
« Reply #9 on: April 11, 2007, 11:40:54 AM »

I would suggest that the author add a line of instruction under the path field in the settings for this module.  It seems like I am not the only one didn't realize that I needed to create said folder, I just assumed the module created it for me.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
37 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search