1
dnprossi
Virtualhost problem - mainfile.php - XOOPS_URL on xoops 2.3.x
  • 2008/11/27 14:20

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


I am trying to put a new 2.3.x installation online as a virtualhost and have some trouble when in admin. Menu links reset to localhost.

I used to use the code below in all my installations previous to the 2.3.x versions in mainfile.php and all worked:

Quote:

$xurl='http://'.$_SERVER['HTTP_HOST'];
define('XOOPS_URL', "$xurl");


As described on

DevWiki XoopsAndVirtualHost

But now with 2.3.x on user pages links are correct eg.

Quote:

but when selecting any admin menu item links are set to

Quote:

Seems a cache problem but i cleared updated all and problem still there...

Help please...

2
ghia
Re: Virtualhost problem - mainfile.php - XOOPS_URL on xoops 2.3.x
  • 2008/11/27 15:01

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You may also check this out.

3
dnprossi
Re: Virtualhost problem - mainfile.php - XOOPS_URL on xoops 2.3.x
  • 2008/11/27 15:26

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Thanks ghia, but thats for multisite mine is a single site on virtualhost...

4
ghia
Re: Virtualhost problem - mainfile.php - XOOPS_URL on xoops 2.3.x
  • 2008/11/27 16:14

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Sorry, I'm mistaken your problem as local - internet.

In 2.3.x some additional path definitions were added to mainfile.php. You have probably to modify them also in the way of XOOPS_ROOT_PATH and XOOPS_URL.

5
dnprossi
Re: Virtualhost problem - mainfile.php - XOOPS_URL on xoops 2.3.x
  • 2008/11/27 17:08

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Really don't get it...

I tried changing settings as you suggest but things only get worse.

This is what exactly happens:

In home page browsing works perfectly in every single module and menu selection.
Once I am in cp panel-admin menu everything works fine while i browse main menu items eg System menu to list subitems, news menu to list subitems.
Things go wrong when any subitem is selected eg System's Banners or Blocks or any other.
Something goes wrong at subitem menu creation and i don't get where.

Still help needed...

6
dnprossi
Re: Virtualhost problem - mainfile.php - XOOPS_URL on xoops 2.3.x
  • 2008/11/27 17:34

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Really need help!!
I can PM link to test site...

7
dnprossi
[SOLVED ] Virtualhost problem - mainfile.php - XOOPS_URL on xoops 2.3.x
  • 2008/11/28 9:28

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


[SOLVED]
Easy....Silly....
Remove xoops_adminmenu_XoopsGuiDefault.php from
htdocs/xoops_data/caches/xoops_cache/

All works....

Login

Who's Online

322 user(s) are online (221 user(s) are browsing Support Forums)


Members: 0


Guests: 322


more...

Donat-O-Meter

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

Latest GitHub Commits