HTML Logo by World Wide Web Consortium ( Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.

Bad ocPortal Files

Login / Search

 [ Join | More ]
 Add topic 
#35386 (In Topic #7984)

Honoured member

I have no idea what's causing this, but once in a while I get random errors from ocPortal. I try and take a look at any files involved in the error, and the files I look at are all screwed up.

The problem mostly occurs in the language files. Sometimes there will be numerous linebreaks between each language entry or an entry will go missing. I just got an error from my ocPortal when using the search feature (the error wasn't in the language files, though):

Parse error: syntax error, unexpected $end in /home/public_html/sources/mail.php on line 1

Care to ask what mail.php looks like? The files contents are all on one line, AND, almost the entire line was somehow commented out. What I don't understand is, how are these files getting like this? I edit files from time to time, but I don't destroy them resulting in any errors! I swear ocPortal is editing files without my permission. :(

I'm just a bit tired of having to download an extra copy of ocPortal from this site almost twice a week and re-uploading files (if I receive an error with a file, I usually just overwrite it with a default copy). Plus, it's a real pain when you have custom or edited entries in your language files, and because there's so many entries, it's basically impossible to search for what is and isn't there (well, searching would take forever), so that just leaves you basically no choice but to just overwrite the entire file which removes your custom entries.


Back to the top

I've never heard of a problem like this, but I can ensure you ocPortal wouldn't modify the sources/mail.php file – it's unlikely that it even could, due to permissions.
If it happens again, I'll try and see if I can work out what's happened if you post a zipped copy of the corrupt file here.

Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Support me on Patreon
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: