Revcms bug after adding code to show author.

Results 1 to 4 of 4
  1. #1
    Member Maestrom is offline
    MemberRank
    Aug 2012 Join Date
    The NetherlandsLocation
    89Posts

    Revcms bug after adding code to show author.

    Hello everybody,

    Today I tried to fix my new author in REVCMS, on a rival forum I found this code:

    ALTER TABLE cms_news MODIFY author VARCHAR(25) NOT NULL;

    But when I try to post new now I get this error,

    Field 'author' doesn't have a default value

    How am I able to fix this?
    Thank you for your reply,

    -Maestro


  2. #2
    Elite Member Marlon Colhado is offline
    Member +Rank
    Jan 2009 Join Date
    BrazilLocation
    178Posts

    Re: Revcms bug after adding code to show author.

    Change the query, to:
    ALTER TABLE cms_news MODIFY author VARCHAR(25) NOT NULL DEFAULT 'Unknown';

  3. #3
    Member Maestrom is offline
    MemberRank
    Aug 2012 Join Date
    The NetherlandsLocation
    89Posts

    Re: Revcms bug after adding code to show author.

    Thanks it worked!

    But now it doesnt tell my name in the bottom but news works!
    Thanks!

    -Maestro

  4. #4
    Elite Member Marlon Colhado is offline
    Member +Rank
    Jan 2009 Join Date
    BrazilLocation
    178Posts

    Re: Revcms bug after adding code to show author.

    Quote Originally Posted by Maestrom View Post
    Thanks it worked!

    But now it doesnt tell my name in the bottom but news works!
    Thanks!

    -Maestro
    When you create the news, it is not adding the MySQL Query your nick.
    Sorry for my english, i'm brazilian..



Advertisement