• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Problem gesior on Ubuntu 10.04, but on WinXP it's ok

enzo boaroli

Dreamer
Joined
Jan 21, 2014
Messages
41
Reaction score
0
Location
Brazil
The title explains itself, while I'm running my website on windows everything is ok, but when I upload to the dedicated and run it on Ubuntu, the page latestnews doesn't seem to load (blank page) and when I try another page like createaccount, options like 'Play Now' are not clickable and decentralized.

windows (running like a charm): http://imageshack.com/a/img194/3606/thzk.jpg

linux: http://imageshack.com/a/img208/3923/lbx2.jpg

Thanks everyone!
 
go to index.php
and down
PHP:
<?PHP
put this:
PHP:
 ini_set( 'display_errors', 1 );
example:
PHP:
<?PHP
ini_set( 'display_errors', 1 );
and now reload your page and check what errors you will have.
 
@Ganjita @seleo thanks for commenting!
Yes I reinstalled gesior.
I have these errros:
PHP:
Notice: Undefined index: sqliteDatabase in /var/www/config-and-functions.php on line 30 Notice: Undefined variable: file_data in /var/www/config-and-functions.php on line 456 Notice: Undefined index: action in /var/www/index.php on line 14 Notice: Undefined index: account_login in /var/www/index.php on line 36 Notice: Undefined index: password_login in /var/www/index.php on line 37 Notice: Undefined variable: main_content in /var/www/latestnews.php on line 48 Notice: Undefined variable: news_content in /var/www/latestnews.php on line 101 Notice: Undefined variable: tickers_to_add in /var/www/latestnews.php on line 167 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 169 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 175 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 189 Notice: Undefined variable: group_id_of_acc_logged in /var/www/latestnews.php on line 291 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'z_forum.icon_id' in 'field list'' in /var/www/latestnews.php:313 Stack trace: #0 /var/www/latestnews.php(313): PDO->query('SELECT `z_forum...') #1 /var/www/index.php(64): include('/var/www/latest...') #2 {main} thrown in /var/www/latestnews.php on line 313



edit:
tested running on linux and windows with same database, windows shows no error, but linux still shows. I think is may because the PHP version used:
PHP running on linux: 5.3.2
PHP running on winxp: 5.2.5

I think I might need a downgrade, anyone knows how to downgrade php on linux? I'm not using xampp on linux!


edit:
Everything is work now, I reinstalled OS and put in lampp 1.6.6 which comes with php 5.2.5.
Also updated my tables on SQL, there were some missing.
 
Last edited:
Back
Top