1
otisredding
Re: ISP upgraded php, some modules erroring out
  • 2007/2/28 20:23

  • otisredding

  • Just popping in

  • Posts: 7

  • Since: 2005/8/25


I've tracked the problem down to this line in agendax:

bindtextdomain( 'agendax', $agendax_path . '/locale/' );

in ../modules/agendax/i18n.php

Not sure why this would cause a fatal error?!? Anyone had this happen?

Commenting out the entire block of code fixes it.

Carmine



2
otisredding
ISP upgraded php, some modules erroring out
  • 2007/2/28 19:28

  • otisredding

  • Just popping in

  • Posts: 7

  • Since: 2005/8/25


install info:
xoops 2.0.16
agendax 2.2
bmsurvey 0.5
php 4.4.4 (with...
allow_call_time_pass_reference = on
allow_url_fopen = on
register_globals = off )

Hello all. Yesterday my ISP upgraded to PHP 4.4.4, from an earlier 4.x version. Now I get errors in the agendax and bmsurvey modules, but other ones like CBB and wfsection work fine. Accessing the problem modules (any page) gives me a "64 - Host not available" error.

Turning php debug on isn't much help.

Doing an include of an agendax file from an external php script (which my site has always done and it worked fine) like so:

include("http://www.mydomain.com/modules/agendax/index.php?op=week");

...now generates the following errors:

Warning: main(http://www.mydomain.com/modules/agendax/index.php?op=week) [<a href='function.main'>function.main</a>]: failed to open stream: HTTP request failed! in file /someDirectory/index.php line 19

Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'http://www.mydomain.com/modules/agendax/index.php?op=week' for inclusion (include_path='.:/usr/local/share/pear/') in file /someDirectory/index.php line 19

Anyone come across anything similar?

Carmine



3
otisredding
Re: Anyone been hacked like this?
  • 2007/1/18 15:39

  • otisredding

  • Just popping in

  • Posts: 7

  • Since: 2005/8/25


Just in case anyone is following this thread (or searches for it later on), turns out it wasn't hacked via xoops, but via one of my own php pages that foolishly did an "include" of whatever was passed in through a GET variable. Zoinks!

Thanks for all the replies.



4
otisredding
Re: Anyone been hacked like this?
  • 2007/1/9 18:45

  • otisredding

  • Just popping in

  • Posts: 7

  • Since: 2005/8/25


Nah, I'm not surpass.

So if I change the perms to 755 it won't affect XOOPS at all? Why the need to "let them rebuild" for a day or so once in a while?

Also, this wouldn't protect the uploads directory, as that _must_ be 777, no?

Sorry about all the questions!

Carmine



5
otisredding
Anyone been hacked like this?
  • 2007/1/9 18:25

  • otisredding

  • Just popping in

  • Posts: 7

  • Since: 2005/8/25


A couple days ago, someone hacked my XOOPS site by uploading files to the cache directory. It was a fake bank site scam. Anyone had this happen before? Any chance they could have done this via XOOPS itself and not ftp?

xoops 2.0.13.1
modules:
- wfsection
- agendax
- wiwimod
- myMedia
- CBB

Thanks,
Carmine



6
otisredding
Re: Showing right blocks that only show for certain modules
  • 2006/5/25 13:00

  • otisredding

  • Just popping in

  • Posts: 7

  • Since: 2005/8/25


Figured out a hack to make it work, so thought I'd post it here for others to find.

Before including header.php, just force your page to "pretend" it's a module that does show the right hand side. Like so:

<?php
include(XOOPS_ROOT_PATH."/mainfile.php");
// hack! we pretend to be the wfsection module so the right blocks show
$moduleid = 2;
include(XOOPS_ROOT_PATH."/header.php");
?>

my custom html...

<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>

There you are.



7
otisredding
Showing right blocks that only show for certain modules
  • 2006/5/10 20:49

  • otisredding

  • Just popping in

  • Posts: 7

  • Since: 2005/8/25


Hey folks. Thanks in advance for any help.

Trying to wrap some html content in xoops, but I can't get my right blocks to show. The right blocks are not visible in all pages, and I assume that's why they're not showing.

Any way to get the wrapped content to show them?

<?php
include("/path/to/mainfile.php");
$xoopsOption['show_rblock'] = 1;
include(XOOPS_ROOT_PATH."/header.php");
?>
my html here
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>

Thanks again,
Carmine




TopTop



Login

Who's Online

143 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 143


more...

Donat-O-Meter

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

Latest GitHub Commits