Results 1 to 6 of 6

Thread: Strange ERROR MESSAGE when editing tags ...

  1. #1
    Join Date
    Sep 2008
    Location
    Germany - Deutschland
    Posts
    90

    Default Strange ERROR MESSAGE when editing tags ...

    Hi again.
    When we first tested some videos to make sure that everything was working, we didn't bother to write a bunch of tags. Instead, we just typed stuff like lkjlo and hgfzfztfu or öllöklökl (just random keys) to save time. Later on we deleted those videos through the admin panel, but the tags remained. When we went to the tags section in the admin panel, we attempted to edit them by clicking on the button that's next to each tag, and received this error:

    Code:
    ERROR: Unable to execute query
    UPDATE `tags` SET active=and active = 1 WHERE id=9
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and active = 1 WHERE id=9' at line 1
    The error appears on every tag, just the ID number changes. Any idea how to get rid of that or what's causing the error? We'd like to have the ability to edit those tags.
    Thank you.
    .
    EinfachClicken - Family friendly, Fast, Fun, Informative
    Videoportal: http://www.meineclipshow.einfachclicken.de/
    Freebie Flashgames: http://www.megaspass.einfachclicken.de/
    GERMAN HOMEPAGE - http://www.einfachclicken.de/ TONS of FREE STUFF in over 40.000 files.

  2. #2
    Join Date
    Jul 2007
    Posts
    33

    Default Re: Strange ERROR MESSAGE when editing tags ...

    please check your tpl file

    this is correct code

    {section name=tag loop=$tags}

    <tr class="{cycle values="tablerow1,tablerow2"}">
    <td>{$tags[tag].id}</td>
    <td>{$tags[tag].tag}</td>

    <td>
    <form method="POST" action="">
    <input type="hidden" name="action_tag" value="{$tags[tag].id}">
    {if $tags[tag].active eq 1}
    <input type="submit" name="action" value="Disable">
    {else if $tags[tag].active eq 0}
    <input type="submit" name="action" value="Activate">
    {/if}
    </form>

  3. #3
    Join Date
    Sep 2008
    Location
    Germany - Deutschland
    Posts
    90

    Default Re: Strange ERROR MESSAGE when editing tags ...

    Thanks, but that (below) is exactly what I have ... The only thing that I've done, was to translate the words in the values from disable and activate to their equivalent in german. But everything else is exactly the same ... ??? :?

    Code:
    {section name=tag loop=$tags}
    
    <tr class="{cycle values="tablerow1,tablerow2"}">
    <td>{$tags[tag].id}</td>
    <td>{$tags[tag].tag}</td>
    
    <td>
    <form method="POST" action="">
    <input type="hidden" name="action_tag" value="{$tags[tag].id}">
    {if $tags[tag].active eq 1}
    <input type="submit" name="action" value="Deaktiviert">
    {else if $tags[tag].active eq 0}
    <input type="submit" name="action" value="Aktiviert">
    {/if}
    </form>
    </td>
    </tr>
    
    {/section}
    .
    EinfachClicken - Family friendly, Fast, Fun, Informative
    Videoportal: http://www.meineclipshow.einfachclicken.de/
    Freebie Flashgames: http://www.megaspass.einfachclicken.de/
    GERMAN HOMEPAGE - http://www.einfachclicken.de/ TONS of FREE STUFF in over 40.000 files.

  4. #4
    Join Date
    Jul 2007
    Posts
    33

    Default Re: Strange ERROR MESSAGE when editing tags ...

    {if $tags[tag].active eq 1}
    <input type="submit" name="action" value="Deaktiviert">
    {else if $tags[tag].active eq 0}
    <input type="submit" name="action" value="Aktiviert">
    {/if}

    this code is misteken please replace below this

    Code:
    {if $tags[tag].active eq 1}
    <input type="submit" name="action" value="Disable">
    {else if $tags[tag].active eq 0}
    <input type="submit" name="action" value="Activate">
    {/if}

  5. #5
    Join Date
    Sep 2008
    Location
    Germany - Deutschland
    Posts
    90

    Default Re: Strange ERROR MESSAGE when editing tags ...

    .
    Thank you ... but that's really crazy ...
    I thought that the button text in form values can be changed & translated without a problem? Is it like that in all of the admin .tpl files, or is it just this file that won't permit for the button text to be renamed? Thanks again, that did it though.
    .
    EinfachClicken - Family friendly, Fast, Fun, Informative
    Videoportal: http://www.meineclipshow.einfachclicken.de/
    Freebie Flashgames: http://www.megaspass.einfachclicken.de/
    GERMAN HOMEPAGE - http://www.einfachclicken.de/ TONS of FREE STUFF in over 40.000 files.

  6. #6
    Join Date
    Sep 2008
    Posts
    1,019

    Default Re: Strange ERROR MESSAGE when editing tags ...

    You are probably going to run into similar problems on any button that does an action. As in this case, the button does an enable or a disable. Because the button performs an action, the PHP code is specifically looking for the words "enable" and "disable" for it to do anything. Changing it will break the action.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

Similar Threads

  1. error message
    By Dowis in forum Bug Reports
    Replies: 1
    Last Post: 02-10-2009, 03:53 AM
  2. Strange Upload error
    By bcmoney in forum Bug Reports
    Replies: 1
    Last Post: 02-27-2008, 09:15 PM
  3. Strange Error After Log In
    By SportsGamingTV.com in forum Fixed Bugs
    Replies: 1
    Last Post: 09-10-2007, 06:43 PM
  4. Fatal Error after editing template
    By shopgood in forum General Discussions
    Replies: 0
    Last Post: 09-06-2007, 06:39 AM
  5. strange error after trying to upload 150 mb flv file
    By dlevancho in forum Fixed Bugs
    Replies: 7
    Last Post: 06-26-2007, 11:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •