News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

smf registration problem

Started by crookedsarge, April 18, 2011, 05:13:59 PM

Previous topic - Next topic

crookedsarge

Hello
im am having a problem no is able to register to my forums they keep getting an error i have even tried registering a test name still with no luck.

This is the error

An Error Has Occurred!
The database value you're trying to insert does not exist: cash 

Any help would be great

Thanks

ascaland

Installed any new recent modifications?

crookedsarge

nope but i did install some new themes

ascaland

May I see your Register.php file (attatch below)?


ascaland

Well it looks like the query isnt here in Register.php, does the error give you a location as to where the problem occurred?

crookedsarge

Nope all it says is:

An Error Has Occurred!
The database value you're trying to insert does not exist: cash 

ascaland

Quote from: crookedsarge on April 18, 2011, 05:52:47 PM
Nope all it says is:

An Error Has Occurred!
The database value you're trying to insert does not exist: cash

Check your forum's error log. Which can be found in Admin CP -> Maintenance -> Error log.

crookedsarge

LOL Sorry


  Type of error: Critical 
The database value you're trying to insert does not exist: cash
Function: registerMember
File: public_html/forums/Sources/Subs-Members.php
Line: 768 

ascaland

Looks like this error has originated from here,
'id_post_group' => 4,// Begin Casino Code
'cash' => $modSettings['casinoRegAmount'],
// End Casino Code


By the looks of it, $modSettings['casinoregAmount'] doesnt exist. Have you uninstalled The Casino modification, or is it still in use?

crookedsarge


ascaland

Quote from: crookedsarge on April 18, 2011, 06:05:24 PM
i did unistall it

Then simply replace those lines of code with this,
'id_post_group' => 4,

crookedsarge


Advertisement: