Uber Cms Help

Results 1 to 11 of 11
  1. #1
    Newbie Gravy is offline
    MemberRank
    Aug 2014 Join Date
    11Posts

    Uber Cms Help

    Hello, i hope you guys can help me. I keep getting this error, i know its a db error but i cant seem to fix it.

    UberCMS has encountered an error
    Field 'acc_pornbanned' doesn't have a default value


  2. #2
    ignition sequence start Unphased is online now
    Grand MasterRank
    Jul 2012 Join Date
    DeniedLocation
    1,856Posts

    Re: Uber Cms Help

    Well done on answering your own question. Your 'acc_pornbanned' needs a default value as it clearly states.

  3. #3
    Newbie Gravy is offline
    MemberRank
    Aug 2014 Join Date
    11Posts

    Re: Uber Cms Help

    No because when i try to correct it, i get this error. [Err] 1101 - BLOB/TEXT column 'acc_pornbanned' can't have a default value

  4. #4
    ignition sequence start Unphased is online now
    Grand MasterRank
    Jul 2012 Join Date
    DeniedLocation
    1,856Posts

    Re: Uber Cms Help

    Quote Originally Posted by GravyTrainChief View Post
    No because when i try to correct it, i get this error. [Err] 1101 - BLOB/TEXT column 'acc_pornbanned' can't have a default value
    This is because you're trying to use blob or text which in both cases cannot be used to set a default value. Try changing your field type to varchar and try again.

  5. #5
    Newbie Gravy is offline
    MemberRank
    Aug 2014 Join Date
    11Posts

    Re: Uber Cms Help

    Fuck porn ban, Is there a way to completely delete it?

  6. #6
    ignition sequence start Unphased is online now
    Grand MasterRank
    Jul 2012 Join Date
    DeniedLocation
    1,856Posts

    Re: Uber Cms Help

    Quote Originally Posted by GravyTrainChief View Post
    Fuck porn ban, Is there a way to completely delete it?
    You could but it would require more effort for what it's worth. Attempting to just delete the column would set off a ton of errors.

  7. #7
    Newbie Gravy is offline
    MemberRank
    Aug 2014 Join Date
    11Posts

    Re: Uber Cms Help

    Ok thanks for the warning what should i run to fix this. Sorry to ask to be spoon fed but im really desperate right now.

  8. #8
    ignition sequence start Unphased is online now
    Grand MasterRank
    Jul 2012 Join Date
    DeniedLocation
    1,856Posts

    Re: Uber Cms Help

    ALTER TABLE `tablename` MODIFY `acc_pornbanned` VARCHAR(100);

    Change tablename to the table your 'acc_pornbanned' column is located.

  9. #9
    Newbie Gravy is offline
    MemberRank
    Aug 2014 Join Date
    11Posts

    Re: Uber Cms Help

    Your a god but now i got this error "UberCMS has encountered an error
    Field 'position' doesn't have a default value"



    - - - Updated - - -

    Wow im an idiot dont even reply to this XD

  10. #10

    Re: Uber Cms Help

    Do as he just showed you, but change `acc_pornbanned` to `position` and change tablename to the table that `position` is located in, most-likely `users`.

  11. #11
    ignition sequence start Unphased is online now
    Grand MasterRank
    Jul 2012 Join Date
    DeniedLocation
    1,856Posts

    Re: Uber Cms Help

    ALTER TABLE `tablename` MODIFY COLUMN `position` DEFAULT '30';

    Try that. It should set the default value of column 'position' to 30. Remember to edit 'tablename' again.

    Quote Originally Posted by HTML IS MY NAME View Post
    Do as he just showed you, but change `acc_pornbanned` to `position` and change tablename to the table that `position` is located in, most-likely `users`.
    It isn't the same command. For position we're adding a default value, not changing the field type.

    EDIT: My bad. HTML IS MY NAME is right. I misread.
    Last edited by Unphased; 18-12-14 at 04:29 AM.



Advertisement