Links do not direct correctly in User's opened profile
In an opened user's profile section, the links for Profile, Blogs, Friends, Photos, Polls, Quizzes, Videos, Favorites are not directing to a user's specific profile event/item.
For example: On our other Phpfox sites, if we click on lets say photos under a user's opened profile the link in properties would look like this
http://www.mysite.com/profile-760/photo/
However, on one of our sites its like this under a user's open profile:
http://www.mysite/profile/photo/
I tried cleaning the site cache and browser cache to no avail. Also tried a database repair and optimizing session.
Any ideas how to fix this issue please?
egirl
Running
V3.2.0(build 2)
I think the problem was caused by a wrong modification in the file "/module/profile/include/component/block/header.class.php".
There was a foreach commented out, causing the profile url, in the variable $aMenus, to be unset. Therefore, the script replaced the url with the data of the user logged in, and not with the data of the owner of the profile.
Hope this helps!
Knowledge base for V2 here
"Clothes do not make the man... but nobody respects a Sargent in underwear!" -- Me
I think the problem was caused by a wrong modification in the file "/module/profile/include/component/block/header.class.php".
There was a foreach commented out, causing the profile url, in the variable $aMenus, to be unset. Therefore, the script replaced the url with the data of the user logged in, and not with the data of the owner of the profile.
Hope this helps!
Hi Fern I am having the same issue, can you walk us through a fix?
V3
While you are waiting, since Fern may not be on due to the weekend, you can look in that file and see if your foreach line is commented out for some reason. It's a small file so it should be easy to see.
You can also use the free tool inspect element in firefox to view the code in your browser without having to go to cpanel just to check it. Just right click on one of the links and click inspect element and see how it looks.
I always make a copy of a file before editing. ![]()
help!!! I have made new pages, but it is adding past history to the url, so when you copy and share the link from the address bar, it will not work. I figured out how to fix it on my links, but my users will not know what to do, so what can I do?









