Newbie Spellweaver
- Joined
- Feb 3, 2015
- Messages
- 30
- Reaction score
- 11
Tested server configuration:
Apache (enable short tags)
PHP: 5.6.30 (install the module mbstring)
MySQL: 5.6.37 (disable strict mode)
Charset: UTF-8 Unicode (utf8)
orea said:You must be registered to see links
please help me
Parse error: syntax error, unexpected '}' in C:\phpStudy\PHPTutorial\WWW\rpg-master\index.php on line 638
Did you adjust the index.php? it looks like that you've added new brackets(without closing them)Thanks for this amazing release... to bad I couldn´t figure out why I´m getting the following error....
Did you adjust the index.php? it looks like that you've added new brackets(without closing them)
Try reuploading the index.php
[h=1]Error[/h] SQL query:
CREATE TABLE `gebruikers` ( `user_id` int(11) NOT NULL, `aanmeld_datum` datetime NOT NULL, `datum` datetime NOT NULL, `account_code` varchar(255) NOT NULL, `username` varchar(12) NOT NULL, `wachtwoord` varchar(32) NOT NULL, `email` varchar(40) NOT NULL, `profielfoto` varchar(255) NOT NULL DEFAULT 'images/you/Ash-red.png', `cover` varchar(255) NOT NULL DEFAULT 'images/cover.png', `views` int(255) NOT NULL DEFAULT '0', `ip_aangemeld` varchar(15) NOT NULL, `ip_ingelogd` varchar(15) NOT NULL, `premiumaccount` int(4) NOT NULL DEFAULT '1', `admin` tinyint(1) NOT NULL DEFAULT '0', `test` tinyint(2) NOT NULL, `spec` tinyint(3) NOT NULL DEFAULT '0', `Adminstatus` tinyint(1) NOT NULL DEFAULT '0', `wereld` varchar(6) NOT NULL, `silver` int(10) UNSIGNED NOT NULL DEFAULT '75', `gold` int(10) UNSIGNED NOT NULL DEFAULT '300', `bank` int(10) UNSIGNED NOT NULL DEFAULT '0', `storten` tinyint(1) NOT NULL DEFAULT '5', `store` text, `profilestore` longtext,[...]
MySQL said:You must be registered to see links
#1067 - Invalid default value for 'reclameAanSinds'
Didnt touched the files at all....
EDIT: Fixed the problem by switching from apache to nginx. Now I got another problem when trying to import the db.
It looks nearly running....
Tryed both... import the sql file and tryed to import only the text....
This is line 2590 in the .sql file, this is the line which is causing the error.
Remove the error reporting from the Index.php to deny all the notices (i'll try to fix them in the near future)
Hello, I'm new, and I don'(http://imgur.com/a/heQkd) t know how to fix this error
You must be registered to see links
-------Update-------
I change display_errors in php.ini into Off, then it didn't show the errors anymore, but I dont know does it affect to the game's engine?
Sorry for the double post
I've edited some files to make the source work on PHP 7.0/7.1
Just extract those files, fill in the data of your database in the config.php file and you'll see a running index page.
Maybe DarkShifty will add this to the git of the source.
This is just the start, and not much effort has been put in since i downloaded the source because of time.
I will work on the source tomorrow evening, so more updates will follow :w00t:
Code:Remove the error reporting from the Index.php to deny all the notices (i'll try to fix them in the near future)
View attachment 161474
Also in this screenshot, deny the notices since i've got my error reporting turned ON
View attachment 161473