UBER CMS HELP

Gravy

New Member
Dec 14, 2014
7
0
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
 

sumo

The end is nigh.
Jan 18, 2014
143
102
It's in your "users" table. I don't know exactly what the error means, but a screenshot might help me understand a little more. So I can see how it displays and where.
 

Gravy

New Member
Dec 14, 2014
7
0
It's in your "users" table. I don't know exactly what the error means, but a screenshot might help me understand a little more. So I can see how it displays and where.
1ba52a75241d15ef293b0945387c301c.png

 
For another note i get this error when trying to fix it. [Err] 1101 - BLOB/TEXT column 'acc_pornbanned' can't have a default value
 

sumo

The end is nigh.
Jan 18, 2014
143
102
Why do you need to use porn ban anyways? Can't you just remove it... I've never had this problem, so you're intentionally trying to add this. If you want to pornban people, just add a porn video to your ban page. Good game?
 

Gravy

New Member
Dec 14, 2014
7
0
Why do you need to use porn ban anyways? Can't you just remove it... I've never had this problem, so you're intentionally trying to add this. If you want to pornban people, just add a porn video to your ban page. Good game?
No i didnt add it, but can you show me how to delete it? I believe its stupid also.
 

Janzeer

Headmaster Of Hogwart's
Apr 30, 2012
522
47
If you were delete at column from database, you would have errors in your emulator. So I would recommend not to delete it and just place a default value as 0.
 

sumo

The end is nigh.
Jan 18, 2014
143
102
If you were delete at column from database, you would have errors in your emulator. So I would recommend not to delete it and just place a default value as 0.
When he tries to do that, it gives him an error. Saying that column can't have a default value.
 

Janzeer

Headmaster Of Hogwart's
Apr 30, 2012
522
47
It's because he doesnt have a default value, it's an empty column. So just go to users and design table, and give the column a value called 0.
 

JayC

Always Learning
Aug 8, 2013
5,504
1,401
@HarkRetros you are an idiot @Janzeer you were right.

Okay go into your SQL you used for your database and find the structure for your users table and just run the query to add the table column back into your users table.. Should be something like:
ALTER TABLE `users` ADD `acc_pornbanned`;

but it will give it a value type, so don't run that because it won't work lmao.


Okay and after you add that column back in open your design table to do this open navicat and just right click on the users table and click design
Scroll down to find acc_pornbanned and just set default value to 0

Image Help:
HQ0bLJe.png

W1HPwQw.png


Edit :

Run this SQL after fixing please:
UPDATE `users` SET acc_pornbanned = 0;
 

Gravy

New Member
Dec 14, 2014
7
0
Is your client.php configured correctly?
Yes, but my emulator doesnt show logs of me connecting. Scratch that i dont believe it is.


<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{hotelName} - Client</title>

<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/client.css" type="text/css">

<script type="text/javascript" src="{url}/app/tpl/skins/Habbo/js/swfobject.js"></script>
<script type="text/javascript">
var BaseUrl = "{swf_folder}";
var flashvars =
{
"client.starting" : "Please wait, {hotelName} is loading",
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "{server_ip}",
"connection.info.port" : "{server_port}",
"site.url" : "{url}",
"url.prefix" : "{url}",
"client.reload.url" : "{url}/client",
"client.fatal.error.url" : "{url}/me",
"client.connection.failed.url" : "{url}/me",
"external.variables.txt" : "{external_vars}",
"external.texts.txt" : "{external_texts}",
"productdata.load.url" : "{product_data}",
"furnidata.load.url" : "{furni_data}",
"use.sso.ticket" : "1",
"sso.ticket" : "<?php mysql_query("SHOW Auth_ticket FROM users") ?>",
"processlog.enabled" : "0",
"flash.client.url" : BaseUrl,
"flash.client.origin" : "popup"
};
var params =
{
"base" : BaseUrl + "/",
"allowScriptAccess" : "always",
"menu" : "false"
};
swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "{swf_folder}/expressInstall.swf", flashvars, params, null);
</script>
</head>

<body>

<div id="client"></div>

</body>
</html>
 
Last edited:

Khalil

IDK
Dec 6, 2011
1,642
786
Idiots..

JayCustom is the only on this thread if not the only one around the habbo help section who replies with actual help. However, a future advice, instead of going through all that hustle, you can just run a three line query, like so:
Code:
ALTER TABLE `users`
DROP COLUMN `acc_pornbanned`,
ADD COLUMN `acc_pornbanned` VARCHAR(60) NOT NULL DEFAULT '0';
 

JayC

Always Learning
Aug 8, 2013
5,504
1,401
Idiots..

JayCustom is the only on this thread if not the only one around the habbo help section who replies with actual help. However, a future advice, instead of going through all that hustle, you can just run a three line query, like so:
Code:
ALTER TABLE `users`
DROP COLUMN `acc_pornbanned`,
ADD COLUMN `acc_pornbanned` VARCHAR(60) NOT NULL DEFAULT '0';
Thank I wasn't sure how to add a column off the top of my head so I just told him to put it back, but yes this should fix your problem<-

Also:
You want to set all of the values already in the table to 0 I put the query already in this post
 

Users who are viewing this thread

Top