1
burfodus
Interesting occurance - disappearing code...
  • 2009/7/9 3:51

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Hi Guys,
I have an interesting question, I have built a module that runs pretty much all pages for a site, however I would like to edit the homepage to be similar to the rest of the site, so I can change the right block on the home page.

currently I am adding code between the header and footer part of the code on the standard index.php file in root.

here is where it gets interesting.
echoing simple divs, text etc, it all works fine.

then i add the code that works fine in the index.php file of the module i have made.

I get nothing in the content area at all!

so I undo my changes and revert to the simple echo of some divs and text, and still i get nothing.!!??

any changes from then on are pointless as nothing apears in the content area.

first i tried this on the xoopsurl.com/ domain, once it dissapeared, it reappeared when i typed xoopurl.com/index.php

but repeating the process gained exactly the same result with all dissapearing once reverting to original code after the change.

there is nothing to tricky about the php code im trying to run in index.php as im not that advanced in php myself.

i feel it may be liked to where i am adding the code to the root index.php file, or something with session memory as it /index.php was seperate from / .

any help would be greatly appreciated.
thanks
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT

2
culex
Re: Interesting occurance - disappearing code...
  • 2009/7/9 8:11

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


I think I know you're talking about but just wanting to make sure.

- You added some custom code to the xoopsroot/index.php ?
- and at first it didnt work so you removed the coded again and now you get blank page ?

Try to turn on error messages in admin/settings and see if this index.php page echoes out some errors.
Programming is like sex:
One mistake and you have to support it for the rest of your life.

3
ghia
Re: Interesting occurance - disappearing code...
  • 2009/7/9 9:34

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Empty the cache folders (except index.html) and restore index.php from a backup.

You should not edit XOOPS core files!
If you want to add content to the homepage use:
- template system_homepage.html
- a custom block and set it to display on the homepage
- add a (empty) content module (eg ghost) and set it as default for the index page

4
burfodus
Re: Interesting occurance - disappearing code...
  • 2009/7/9 13:10

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


your blank module idea will work ghia, i didnt think of that.

I will just do that, thanks.

sb..

XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT

Login

Who's Online

164 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits