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
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.
Comments on adminfunction.php line 170 error
Beginner
Usergroup: Member
Joined: Jun 07, 2006
Location: kent
Total Topics: 2
Total Comments: 5
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
Beginner
Usergroup: Member
Joined: Jun 07, 2006
Location: kent
Total Topics: 2
Total Comments: 5
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
Beginner
Usergroup: Member
Joined: Jun 07, 2006
Location: kent
Total Topics: 2
Total Comments: 5
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