Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
Submit a Q&A Request a Q&A Open Questions

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

How do I...

change my theme logo image

Answer here!

Did you know ?

you can use 'cronjob' in CPanel to complete backups of your database.

More details...

Random question

Ho do I make 'Add to favorites' or 'bookmark' and 'Make this your home page' script?

Answer here!

Recent Q&A List

Cumulus Tag Cloud

2 2.5 2.6 3.0 2013 Abuse AntiHarvesting AntiMalUser AntiSpam API ASP Beats billige black block Blocking Blocks blue Captcha cell Christmas chronolabs Client content Conversion demo Dictionary docek download Dresses editor evden eve Evening facebook floor forms framework free herre Honeypot Human Hymn instant-zero IP jQuery kantor Karaoke lamps Load log logger mobile module modules Monster MyAlbum-p newbb news online PageRank Party Permissions pink Plugin pollos portal Prevention profile project Protector publisher REST Rights rmcommon Room sale security Server site Smarty Spam stem StopForumSpam Studio tag tags tdmcreate Theme themes Transaction Twitter userlog website Whitepaper Wishcraft XFriendica xoops Xortify ZendFramework

New Users

Registering user

# 136034

kennabee

Welcome to XOOPS!
SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)

Question
I'm using my ISP's cPanel X File Manager to change / modify my Xoops PHP files, and I keep breaking my site. What's wrong?
Answer
cPanel X's File Manager module seems to add trailing carriage returns at the end of the PHP file (after the !>). You need to edit your PHP files some other way and upload them, or re-edit the file remove the extra lines.

Added by Carnuke: I also found this to be the case when editing my mainfile.php with cpanel. It left trailing lines after the !> and caused all kinds of problems.

Mithrandir's comment: Trailing carriage returns after the ?> will start the HTML output and cause errors if the code is subsequently trying to add/modify the header information - such as a header('location:') redirection or other header information

These carriage returns in mainfile.php can essentially result in the dreaded blank pages.

Requested and Answered by Danand725 on 2005/1/24 5:28:46 (9343 reads) 2 Comment(s) Print Q&A Send Q&A

The comments are owned by the author. We aren't responsible for their content.
will the added trailing carriage return really cause problems (what kind of problem it can produce?). i have using this method (using the cpanel file manager) to update some of the content of my XOOPS code file (have just updated the mainfile.php for example lately). haven't found any problem so far, but afraid of the above produce some problems in the website which i don't aware of...

EDITED:
I just found the 'remember me' login issue I experienced lately is DUE TO THE TRAILING CR IN THE MAINFILE.PHP!!!! (I have tried all kind of resolution, turning off the protector etc, to resolve the above issue, and it's apparently due to the above cpanel file manager issue!).

Hey, this is very serious! Should announce it to all (Glad to find this great FAQ).

Now, i don't know how should i check the remaining files I edited through this method so far...
Published: 2005/2/2 0:57 • Updated: 2005/2/2 1:14
From experiance, editting the file once is fine, it will add a carriage return but it does not seem to affect the php file. The problems start if you then edit the file again and don't clean up the bottom of the file. It seems to add a carriage return on every edit. This is why it took me so long to discover why my site worked once, and then broke.
Published: 2005/2/2 3:59 • Updated: 2005/2/2 3:59