WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


Image comment issues
A few problems I'm having with posting comments

Version: 2.3.7
Example URL: http://urbanlines.net/gallery/link.php?id=1994
printPrint


Image comment issues
Ducnan Clarke
Member
Avatar

Usergroup: Member
Joined: Dec 19, 2003
Location: Stoke, UK
Total Topics: 7
Total Posts: 20
Posted 10/04/06 - 04:49 PM:
quote post
#1
2 things in 1 which may or may not be related;

1) I can't get WSN codes to work in comments. It was working fine, but after some time editing templates (and possible doing some changes to config) it no longer works. I have checked the switch to allow wsn codes (id=9 name=wsncodes value=1). The markup table seems to be complete and populated. The setting for WSN codes (id=40) seems to be empty, but copying in the data from an old database doesn't help. Any other ideas?

2) When I post a comment, I get the following error:
<br />
<b>Warning</b>: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in <b>/homepages/..../gallery/classes/database.php</b> on line <b>94</b><br />
<head>
<title>WSN Gallery</title>

<link rel="stylesheet" href="templates/styles/default.css" type="text/css">

</head>

<body>

<p>WSN Gallery is unable to render this page. The reason is described below:

<div class="main">No such content exists. The link you are following seems to have been incorrect.</div>

<p>Version info: WSN Gallery 2.3.7</p>

<p>If you are not the administrator of this site, please report this error to the administrator.</p>

</body>
</html>
but the comment does end up in the database.

_____________________
See my galleries at
- http://urbanlines.net
- http://bugrunners.co.uk
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5796
Posted 10/05/06 - 04:51 PM:
quote post
#2
1) Go to Admin->Settings->General at the bottom. Is the comment message field selected for WSN Codes?

2) Post the debug output: http://scripts.webmastersite.net/wsngallery/manua...

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founcer of Red Hat
Ducnan Clarke
Member
Avatar

Usergroup: Member
Joined: Dec 19, 2003
Location: Stoke, UK
Total Topics: 7
Total Posts: 20
Posted 10/05/06 - 05:27 PM:
quote post
#3
1) worked. No idea how the settings had been changed as I hadn't even considered changing that lot. Set it back and it worked though.

2) Set the debug on and it couldn't render any of hte pages due to the masses of errors. I had to go into phpMyAdmin to retet debug to 0, and now nothing works:
Warning: mysql_list_fields() [function.mysql-list-fields]: Unable to save MySQL query result in /homepages/..../gallery/classes/database.php on line 30


http://urbanlines.net/gallery

_____________________
See my galleries at
- http://urbanlines.net
- http://bugrunners.co.uk
Ducnan Clarke
Member
Avatar

Usergroup: Member
Joined: Dec 19, 2003
Location: Stoke, UK
Total Topics: 7
Total Posts: 20
Posted 10/05/06 - 06:11 PM:
quote post
#4
Got the gallery running again. For some reason the System Configuration form is breaking the config.php. If I upload my backup version that I keep on my staging server, it starts working again.

Now however I've lost my "5 newest" thumbnails from the front page (http://urbanlines.net/gallery). Also, the category they are in (http://urbanlines.net/gallery/index.php?action=di...) is displayed fine, but the images are not when you select them (http://urbanlines.net/gallery/comments.php?id=1993).


_____________________
See my galleries at
- http://urbanlines.net
- http://bugrunners.co.uk
Ducnan Clarke
Member
Avatar

Usergroup: Member
Joined: Dec 19, 2003
Location: Stoke, UK
Total Topics: 7
Total Posts: 20
Posted 10/05/06 - 06:40 PM:
quote post
#5
OK, so regenerating everything has brought it back to (I think) where I was before.

I have also fixed the second problem. Somehow the redirect was set to ...{LINKID} rather than ...{IMAGEID}. Again, it could be a result of upgrading from a quite modified old version.

Still a bit concerned about that System Configuration form damaging the config.php, but at least I know how to get around it if needed.

_____________________
See my galleries at
- http://urbanlines.net
- http://bugrunners.co.uk
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.