Webmastersite.net
Register Log In

adminfunction.php line 170 error

Comments on adminfunction.php line 170 error

stantech
Beginner

Usergroup: Member
Joined: Jun 07, 2006
Location: kent

Total Topics: 2
Total Comments: 5
Posted Jun 07, 2006 - 4:01 AM:

Guestbook works fine with validation not required. However if I set all the Usergroups (except admin) to "Require validation" when posting and go to Admin Panel to Apporval I get this below.


Fatal error: Cannot instantiate non-existent class: category in /usr/home/myurl/public_html/guestbook/admin/adminfunctions.php on line 170

Any suggestions?
Thanks and regards

BTW GREAT script
stantech
Beginner

Usergroup: Member
Joined: Jun 07, 2006
Location: kent

Total Topics: 2
Total Comments: 5
Posted Jun 07, 2006 - 4:56 AM:

I have also noticed that the hyperlink for "[Edit Entry]" in Admin Panel is pointing to admin/edit.php. This file does not exist in that folder. "[Custom Reject]" works
I have tried several times to reinstall the whole application.
Cannot find edit.php in admin folder.

Any help appriciated
Thank you
stantech
Beginner

Usergroup: Member
Joined: Jun 07, 2006
Location: kent

Total Topics: 2
Total Comments: 5
Posted Jun 07, 2006 - 10:01 AM:

Though I would list for future ref:

re: adminf unctions.php on line 170 error
Had to comment out the two lines below to make this work. Anyone see implications for doing this?

global $language, $settings;
$adminaddress = $settings->email;
$submitter = $thislink->email;
$subject = $language->email_notifyusertitle;
$message = $language->email_notifyuserbody;
$message = linkreplacements($message, $thislink);
$message = str_replace('{DIRURL}', $settings->dirurl, $message);
// $thecat = new category('id', $thislink->catid);
//$message = categoryreplacements($message, $thecat);
$message = decodeit($message);
sendemail("$submitter", "$subject", "$message", "From: $adminaddress");
}

re: The link for "[Edit Entry]" in Admin Panel is pointing to ...admin/edit.php.

Fixed this by changing line 29 in main.tpl

FROM:>>>[<a href="\edit.php?action=link&field=id&fieldvalue={ENTRYID}&condition=equals\">{LANG_EDITENTRY_EDIT}</a>]

TO >>>[<a href="../edit.php?action=link&field=id&fieldvalue={ENTRYID}&condition=equals\">{LANG_EDITENTRY_EDIT}</a>]

Again not sure what implictions is may have but it all seems to work

smiling face
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.