Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Javascript error  (Read 4380 times)

0 Members and 1 Guest are viewing this topic.

Silmarillion

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Javascript error
« on: December 12, 2004, 07:06:21 pm »

I did a search and couldn't find anything addressing this, although I did find the answer to a second question I had.  :)

When I try to edit a picture's description via clicking the "Edit the Description" link under the pic in the gallery, I get this error:

Java Script Error

Description: Object Expected
Source:http://galleries.ufrealms.net/editOnePic.php?id=489&what=picture
Line:250


Line 250 is actually just a closing table row.

But, the whole row code near it is this:
   
Code: [Select]
      <tr>
                        <td class="tableb" valign="top" style="white-space: nowrap;">
                                {$lang_editpics_php['desc']}
                        </td>
                        <td class="tableb" valign="top">
                                <textarea name="caption" rows="5" cols="40" class="textinput" style="width: 100%;" onkeydown="textCounter(this, {$CONFIG['max_img_desc_length']});" onkeyup="textCounter(this, {$CONFIG['max_img_desc_length']});">{$CURRENT_PIC['caption']}</textarea>
                        </td>
        </tr>

I haven't bothered the scripts.js file, but I have made changes to the css file.   
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Javascript error
« Reply #1 on: December 13, 2004, 07:58:09 am »

http://galleries.ufrealms.net/ is down for me. Therefor can't test anything. Make sure scripts.js is there and as well make sure there's a line in themes/yourtheme/template.html that refers to scripts.js

Joachim
Logged

Silmarillion

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Javascript error
« Reply #2 on: December 14, 2004, 01:24:44 am »

Thank you for trying.   :)  I don't know why the site was down when you tried, but it's up now. 

I checked the scripts.js file and the reference to it in the template.html.  Both are present.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Javascript error
« Reply #3 on: December 14, 2004, 02:03:50 am »

If you switch to the classic Coppermine theme, do you still get the errors?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.