Problem with URLs - Joomla-smf modules

Started by Inertia, February 16, 2006, 07:24:12 PM

Previous topic - Next topic

Inertia

I've search the site, over and over and not coming up with an answer. I'm at the point where my eyes are going to pop out of my head from reading lots of things (mind you, I've learned much today LOL).

The issue I'm having is:

I'm in the process of moving servers. My current site is located at: http://projectgenx.alucinae.com/main [nofollow]

Joomla 1.07 & smf 1.1RCA, with 3.20 bridge. Everything works wonderful btw.

My new location will be:

http://www.projectgenx.com [nofollow]

I transfered Joomla over with no problems. I set up SMF with no problems (except for the posts, which I've yet to do). I re-did the bridge, set the correct path and also did "repair_settings.php" (just in case). The modules - smf login, top posters, and board stats are working incorrectly. When you click on the links - ie, username it takes you to 'page not found', instead of the appropriate page. In doing a view source, it shows these links direct to:

//ProjectGenX/home/index.php?option=com_smf&Itemid=30&?action=profile;u=1

All other links that work great go to: index.php?option=com_smf&Itemid=30&?action=profile;u=1

I've tried everything I can think of to get this to change. I've explicitly followed the instructions for Joomla Bridge, SEF is turned off, Enable compression is turned of etc etc.. I just cannot figure out how to correct these issues. You can see what happens if you load the site www.projectgenx.com [nofollow] and try clicking on the links - for example "newest member".

I'd appreciate any help. Hopefully I've given enough information. Thanks so much in advance.

~I
"Never get so busy making a living that you forget to make a life." - Anon

Inertia

Update - I'm still having issues with this. I've reloaded the entire site to a different directory, and installed the entire database again. The module links are still not working correctly, only now they divert page to the main index page.

Im wondering if this has anything to do with .htaccess at all? I don't have one right utilized right now.

The domain is one of 3 I have with my host. The site itself is via a subdirectory, which the domain points to. Not sure if this will help anyone figure out whats going on, but any suggestions would truly be appreciated.

Thank you
"Never get so busy making a living that you forget to make a life." - Anon

Inertia

Further testing - I unistalled the 3.20 bridge, and installed Joomlahacks bridge. However, I continued to have the same issue with the modules. I'm starting to wonder if it isn't a bridge issue persay, or if its something in the coding in the index file of the template, or as stated above if it has something to do with .htaccess, however I'm completely at a loss as to what to do or how to fix it.

I've since reinstalled the bridge (3.20) as I prefer this bridge overall.

Could the issue be Joomla related?

I'm reaching here  :(
"Never get so busy making a living that you forget to make a life." - Anon


Inertia

Sorry, Oristo - I've just started from scratch again. I've installed fresh both Joomla and SMF. I'm going to transfer the data over from the db when I've got the bridge etc re-set up.

I think the issue lies with the fact that the urls in the modules point via the path, and for some reason get re-routed to the index page. I have 3 domains on one host. So my domain www.projectgenx.com [nofollow] is via a subdirectory with a pointer set up. The absolute path is much different from the domain name. I'm also beginning to think this is more of a joomla issue than a bridge issue. The more I 'fiddle' with things, the more I'm beginning to think that if I had www.projectgenx.com [nofollow] on it's own server with no subdirectory etc, it would work perfectly.

Once I've reinstalled everything I'll let you know. I'd appreciate any input here as I really want to get things working. I used to be a phpbb fan, but since using SMF I'm incredibly happy with the results!

:)
"Never get so busy making a living that you forget to make a life." - Anon

Orstio

QuoteI think the issue lies with the fact that the urls in the modules point via the path, and for some reason get re-routed to the index page. I have 3 domains on one host. So my domain www.projectgenx.com is via a subdirectory with a pointer set up. The absolute path is much different from the domain name. I'm also beginning to think this is more of a joomla issue than a bridge issue. The more I 'fiddle' with things, the more I'm beginning to think that if I had www.projectgenx.com on it's own server with no subdirectory etc, it would work perfectly.

The absolute path is always different than the URL.  I hope that your "pointers" are not Apache redirects in the .htaccess files.  You must realize that those also redirect scripts that are looking for information in a directory.

Inertia

I am not using an .htaccess file. The pointer is set up thru my web host.

The .htaccess the web host currently supports is just for custom 404 pages etc.

"Never get so busy making a living that you forget to make a life." - Anon

Orstio

QuoteI am not using an .htaccess file. The pointer is set up thru my web host.

Same thing.  It is done on the server level, which will redirect scripts as well as people.  The server really has no way to differentiate between a request from a script and a request from a person.

Inertia

Ok - i've got the installs done. I haven't added any of my database information yet, but I did post a test post so you can see on the main page what's happening. (might make it easier to see it, rather than my longwinded explanation!).

If you see for example - Top Posters. Click "Admin"  - it is suppose to take you to the profile, however it just redirects back to the main page. 

The Who's online module is working when you click on the user name. (sorry if this is confusing. I'm trying to explain it as best I can).

www.projectgenx.com

Thanks in advance for your time!
"Never get so busy making a living that you forget to make a life." - Anon

Inertia

#9
Hmm...

Now it appears to be working.

I'm going to transfer the users over (via database) and see if that makes any difference. I'm not exactly sure what changed for it to work when 5 minutes ago it wasn't working.

I'll let you know what happens when I transfer stuff over. Thanks again Oristio. I really appreciate the time.

*edits to add*

It appears to work when I'm in the forum.

http://www.projectgenx.com/index.php?option=com_smf&Itemid=26 [nofollow]

The user links work perfectly and go directly to the profile.

When I'm on the index page

http://www.projectgenx.com/index.php?option=com_frontpage&Itemid=1 [nofollow]   

They don't work.
"Never get so busy making a living that you forget to make a life." - Anon

Orstio

Oh, I see.

Your server doesn't like the "&?" generated in the URL by that module.


Inertia

So what can I do? Just delete that? (forgive me if this is a stupid question - I'm still learning the basics!). Is there anyway around that?

Thanks again!
"Never get so busy making a living that you forget to make a life." - Anon

Orstio

There are some ways around that.  The best would be to return the ouput as an array, and then change the URLs in the array.

If you're not well-versed in PHP, you probably won't want to tackle that.

Inertia

Well I found a way to get it working.

I added this line in to each of the modules:

$smfurl = "index.php?option=com_smf&Itemid=" . $smfItemid."&";

And then replaced:

$scripturl = $myurl with this instead: $scripturl = $smfurl;. The modules appear to be working ok. I'm not sure if this is the 'correct' thing to do. I took the code from the Who's Online Module as that was the only one that appeared to work.
"Never get so busy making a living that you forget to make a life." - Anon

Orstio


Inertia

"Never get so busy making a living that you forget to make a life." - Anon

Advertisement: