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

PHP parse error | Forum

Richard Beltran
Richard Beltran Oct 7 '15
Pls help me.. I change a word on my site using language then suddenly all menu words were change also by different characters then the whole site became white screen.. I checked the error logs on my cpanel and this is what it says: 


[08-Oct-2015 11:08:34 Asia/Manila] PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ')' in /home/chad1486/public_html/ow_pluginfiles/base/lang_1.php on line 874


Im not a tech guy so i really need some help now.. tnx

Richard Beltran
Richard Beltran Oct 7 '15
here is the screenshot..
Attachments:
  cs.PNG (14Kb)
ross Team
ross Oct 7 '15
provide us your lang_1.php file here in the attachment, don't forget to archive it as forum does not accept php extension
The Forum post is edited by ross Oct 7 '15
Richard Beltran
Richard Beltran Oct 7 '15
this is what i have on lang_1
Attachments:
  lang 1.txt (52Kb)
Richard Beltran
Richard Beltran Oct 7 '15
it seems some characters are missing there.. i did nothing on that part.. i always edit the site through oxwall cpanel..
ross Team
ross Oct 7 '15
Yes, the end of the file does not have this: 


);?>


please add it and see if the issue persists. 

Richard Beltran
Richard Beltran Oct 7 '15
i did add the characters then saved it but the site still not working..  i dont know if i did it right.. 
Attachments:
  lang_1add.PNG (21Kb)
ross Team
ross Oct 8 '15
remove that 'bas at the end and try again
Richard Beltran
Richard Beltran Oct 8 '15
ok i did that but i cant change it..
Attachments:
  lang_2add.PNG (28Kb)
ross Team
ross Oct 8 '15
Please, contact your hosting provider, seems like your server is out of space

Also, if you have dev mode enabled, please disable it. 

Richard Beltran
Richard Beltran Oct 8 '15
ok thanks.. but i never set my dev mode enabled maybe i should set it first before adding the code is that right? sorry I'm really not a tech guy but im trying to understand everything. thanks for the help.. will soon post again on this topic and let you know
ross Team
ross Oct 8 '15
No, no need to enable dev mode then
Richard Beltran
Richard Beltran Oct 8 '15
ok thanks. :)
Richard Beltran
Richard Beltran Oct 8 '15
hi ross.. i repeat the process and removed the 'bas then my site start working again but the main text of all the buttons wont appear.. i  put my site in debug mode and it says: 


OW Debug - Notice Message: Undefined index: host File: /home/chad1486/public_html/ow_core/request.php Line: 214

i  screenshot my site for you to see and also the file request.php

Attachments:
  request.txt (6Kb)
  text error.PNG (113Kb)
Richard Beltran
Richard Beltran Oct 8 '15
Hello it seems that my site is working ok now.. i tried to change some text using language again then saved it and suddenly all the main text of the site came back. thanks for the help. more power!
ross Team
ross Oct 11 '15
Ok, thanks for letting us know