We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

DEBUG MODE | Forum

Impact-tech
Impact-tech Oct 18 '15

After i turned on DEBUG MODE i got this error:Fatal error: Call to undefined function phpdefine() in /home/empirez/public_html/ow_includes/config.php on line 1


Now my website dont work..?


Impact-tech
Impact-tech Oct 18 '15
Any help..?
ross Team
ross Oct 18 '15
Did you put any code in the config.php file on line 1 such as phpdefine()? please remove it from there
Impact-tech
Impact-tech Oct 19 '15
No i didnt..i just puted true in debug mode and website stoped..


SongPhi
SongPhi Oct 19 '15
Hi,


I think because of line ending different from linux and Mac. I guess you edit config.php via FTP.


Another issue is short_open_tag = On at your server


So on config.php file, it maybe look like


<?php


define('OW_URL_HOME', '...');


But because of line ending different and short tag open, php interpret the code like this:


<? phpdefine(...


You should request your hoster to config it for you regarding this issue. 


Or you could try to edit .htacess file, append this line at its end:


php_value short_open_tag 0


I do not guarantee it working on your server's configuration.


About line ending different, please download config.php and use some kind of advanced text editor to change it, such as Notepad++, Sublime Text or Bracket to change its linefeed. Then, reupload overwrite config.php


Good luck,


Updated: after thinking for awhile Im pretty sure you are on a Mac, but it just a guess

The Forum post is edited by SongPhi Oct 19 '15