1
burfodus
url incorrect when clicking on a module link.
  • 2008/12/12 0:38

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


via tabs at the top of my theme file, i have links pointing to various modules in my site.

I have several sites hosted in the same package, with different domains pointing to myhostingpackage/folder1/example/ .

the page links within XOOPS are all correct, and this site works, but when i click the tab links (i have tried with full domain name included and without) it reads correctly, but then displays the /folder1/example/ in the Url.

the link will show down the bottom, www.domain.com/modules/contactus but then it will take you to www.domain.com/folder1/example/modules/contactus which effectively does not exist, becaus www.domain.com is pointing to the end of the example folder.

How do I fix this and why is it occuring?
thanks in advance
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
ghia
Re: url incorrect when clicking on a module link.
  • 2008/12/12 1:29

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


It seems there is a misalignment in the XOOPS_URL and XOOPS_ROOT_PATH definition.
If XOOPS is installed in the root, then the contact module is accessed byhttp://www.domain.com/modules/contactus/ and your XOOPS_URL ishttp://www.domain.com . In the internal directory structure, there will be something as /home/account/public_html/modules/contactus/ and that makes /home/account/public_html the XOOPS_ROOT_PATH.
If XOOPS is installed in a subdirectory of your www directory, then these subdirectories should be added to both. For eg installation in a XOOPS directory these definitions becomehttp://www.domain.com/xoops and /home/account/public_html/xoops .

3
burfodus
Re: url incorrect when clicking on a module link.
  • 2008/12/12 7:54

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


ok well according to your post, it seems the details are currently correct.

details from my mainfile below, my hosting package root is /html/ but the domain is directed to the folder /gympiecarpetcourt/ and this is where XOOPS is installed.

Quote:

define( 'XOOPS_ROOT_PATH', 'D:/Hosting/html/gympiecarpetcourt' );
define( 'XOOPS_PATH', 'D:/Hosting/html/gympiecarpetcourt/xoops_lib' );
define( 'XOOPS_VAR_PATH', 'D:/Hosting/html/gympiecarpetcourt/xoops_data' );
define("XOOPS_TRUST_PATH", XOOPS_PATH);
define( 'XOOPS_URL', 'http://www.gympiecarpetcourt.com' );


ps how do you do those little code box thingys.
cheers
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

4
ghia
Re: url incorrect when clicking on a module link.
  • 2008/12/12 11:29

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


And how does these definitions correspond to the links and errors in your first post?

Has the IUSR_SERVERNAME (alias, to be replaced by the real name) the necessary rights in IIS and the file system to access the required directories and libs?
These rights in Windows add an extra layer of problems, read some relevant threads.

The code box thingies are a button before the quote box thingies.

5
burfodus
Re: url incorrect when clicking on a module link.
  • 2008/12/12 14:01

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


thanks for your help, here are the details

when I hover the contact us button the link address down the bottom is

www.gympiecarpetcourt.com/modules/contactus (correct)

once clicked it takes me to the contact page with the url reading

www.gympiecarpetcourt.com/gympiecarpetcourt/modueles/contactus

(incorrect, and technically doesent exist)

I dont know anything about iis, didnt really understand your last post, im just a beginner and very new to all this.
having a look at those threads now.
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

6
ghia
Re: url incorrect when clicking on a module link.
  • 2008/12/12 14:52

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Seems you resolved it.

7
burfodus
Re: url incorrect when clicking on a module link.
  • 2008/12/13 1:18

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


No I havent resolved it at all.

Thanks for taking the time to look at it.

I dont want the folder /gympiecarpetcourt/ in the middle to be shown, for this site, its pretty straight forward, the folder name matches the site at least, but for others, they are in two or more subfolders.

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

8
ghia
Re: url incorrect when clicking on a module link.
  • 2008/12/13 2:14

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


At the time a wrote the message, it was no longer adding the /gympiecarpetcourt/ before /modules/contactus/ . Now it does it again, but strange enough the page always loads for both URL.

Have you some kind of URL rewriting?
I see also a lot of cloned? modules eg /modules/blinds, /modules/allflooring or are these just bad links?

9
burfodus
Re: url incorrect when clicking on a module link.
  • 2008/12/13 7:06

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


no thats correct, i use dummy pages and then just load what i want onto them with blocks.

I think from the menu it works, but from the tabs it doesnt, or maybe its just random.

no i dont have any kind of rewriting, just straight install, it seems to do this with most of my XOOPS installations.

yeah, it is strange how it still works hey, cos with /gympiecarpetcourt/ in the middle the folder isnt really there.

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

10
trabis
Re: url incorrect when clicking on a module link.
  • 2008/12/13 12:24

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I donĀ“t know why but I notice that if you add a tralling slash at the end of your links it will work fine

instead of having blablabla/aboutus
try blablabla/aboutus/


Login

Who's Online

246 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 246


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