Current time: 04-24-2024, 04:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
_SESSION problem??
Author Message
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #1
_SESSION problem??
I am no php person, but i have about 4 sites, that have one problem in common...

these sites have links that seem to be rewritten when clicked on depending on what language you select or other criteria... but non of thee are working...
example....

i go to a site and click on a link after i have clicked English and the link should be http://www.domain.com/en/images/button.gif but shows up as http://www.domain.com//images/button.gif

I tried turning on register globals as a test but that does not help... any ideas? all these site worked fin on the old vhcs2 system same OS and everything....

??

Thanks to all

Rob..
11-23-2007 06:21 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: _SESSION problem??
Maybe it has something todo with Globals ON.
ispCP is more secure so that could be.
I´m also no PHP Dev but maybe you can post a part of the Code for them.

Greez BeNe
11-23-2007 06:26 AM
Visit this user's website Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #3
RE: _SESSION problem??
Globals on or off it does not work.. i am not sure which code to post???

Like i said i am no php guru... but here is part of an index.php page that does not seem to work...

<div class="site_1">
<span class="top_decoration"></span>
<h2><a href="cats/YouTube Lollywood">YouTube Lollywood</a></h2>
<div class="item_1">
<a href="/8531/TERI-USS-NIGAH-KA-SHUKRIYA---KALA-PAANI"><img src="http://img.youtube.com/vi/QNytm442sdc/default.jpg" alt="" /></a>
<h3><a href="/8531/TERI-USS-NIGAH-KA-SHUKRIYA---KALA-PAANI">TERI USS NIGAH KA SHUKRIYA ...</a></h3>
<p class="short">
naseem sings for shamim ara. habib and suhir starring too.
Au...</p>
<ul class="stats">
<li class="time">2 d 10 h 21 m</li>
<li class="hits">0 hits</li>
<li class="rating">0</li>
</ul>
</div>

Now you see there is no directory /8351, it is suppose to get rewritten to something else.....

It's hard to explain.....

BeNe Wrote:Maybe it has something todo with Globals ON.
ispCP is more secure so that could be.
I´m also no PHP Dev but maybe you can post a part of the Code for them.

Greez BeNe
11-23-2007 06:44 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: _SESSION problem??
try to disable suhosin (or set it in simulation-mode), define an error.log for php, maybe it's the "long-array" thing http://ch2.php.net/manual/en/ini.core.ph...ong-arrays

Well, otherwise it's hard to guess without the source...

/J
11-23-2007 07:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #5
RE: _SESSION problem??
No difference with suhosin on of off, even after i delete phptmp dir contents

And modrewrite i assume is on?? i also put +FollowSymLinks in apache conf file too to be safe...
i will check out that link for long arrays now...

How can i test if mod rewrite is working ok?

Thanks...
Rob..


joximu Wrote:try to disable suhosin (or set it in simulation-mode), define an error.log for php, maybe it's the "long-array" thing http://ch2.php.net/manual/en/ini.core.ph...ong-arrays

Well, otherwise it's hard to guess without the source...

/J
11-24-2007 01:10 AM
Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #6
RE: _SESSION problem??
But long array thing id for php5 only.... as per that article and was dropped in php6

Rob..


joximu Wrote:try to disable suhosin (or set it in simulation-mode), define an error.log for php, maybe it's the "long-array" thing http://ch2.php.net/manual/en/ini.core.ph...ong-arrays

Well, otherwise it's hard to guess without the source...

/J
11-24-2007 01:13 AM
Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #7
RE: _SESSION problem??
AN FYI, not sure if it matters, but when i look in phpinfo on the server i do not see mod_rewrite in the info page, does this mean its not loaded/working?

my /etc/apache2/mods-enabled dir contents

lrwxrwxrwx 1 root root 30 2007-09-19 09:44 actions.load -> ../mods-available/actions.load
lrwxrwxrwx 1 root root 28 2007-09-19 09:44 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 2007-09-19 09:44 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 2007-09-19 09:44 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 2007-09-19 09:44 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 2007-09-19 09:44 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 2007-09-19 09:44 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 2007-09-19 09:44 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 2007-09-19 09:44 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 27 2007-09-19 09:44 cgid.conf -> ../mods-available/cgid.conf
lrwxrwxrwx 1 root root 27 2007-09-19 09:44 cgid.load -> ../mods-available/cgid.load
lrwxrwxrwx 1 root root 26 2007-10-17 16:01 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 26 2007-09-19 09:44 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 2007-09-19 09:44 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 2007-09-19 09:44 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 36 2007-10-18 10:45 fastcgi_ispcp.conf -> ../mods-available/fastcgi_ispcp.conf
lrwxrwxrwx 1 root root 36 2007-10-18 10:45 fastcgi_ispcp.load -> ../mods-available/fastcgi_ispcp.load
lrwxrwxrwx 1 root root 27 2007-09-19 09:44 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 2007-09-19 09:44 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 28 2007-09-19 09:44 proxy.conf -> ../mods-available/proxy.conf
lrwxrwxrwx 1 root root 33 2007-10-17 16:01 proxy_http.load -> ../mods-available/proxy_http.load
lrwxrwxrwx 1 root root 28 2007-09-19 09:44 proxy.load -> ../mods-available/proxy.load
lrwxrwxrwx 1 root root 30 2007-09-19 09:44 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 31 2007-09-19 09:44 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 2007-09-19 09:44 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root 29 2007-09-19 09:44 suexec.load -> ../mods-available/suexec.load
lrwxrwxrwx 1 root root 32 2007-10-17 15:04 unique_id.load -> ../mods-available/unique_id.load

????

Rob..

robmorin Wrote:But long array thing id for php5 only.... as per that article and was dropped in php6

Rob..


joximu Wrote:try to disable suhosin (or set it in simulation-mode), define an error.log for php, maybe it's the "long-array" thing http://ch2.php.net/manual/en/ini.core.ph...ong-arrays

Well, otherwise it's hard to guess without the source...

/J
11-24-2007 01:29 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: _SESSION problem??
mod_rewrite is a apache thing - not php.
If your problem is mod_rewrite, maybe the rewrite rules are not working...???

Code:
# apache2ctl -M
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgid_module (shared)
dir_module (shared)
env_module (shared)
fastcgi_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
Syntax OK
11-24-2007 02:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #9
RE: _SESSION problem??
Ok so since last post i test rewrite with a simple test and it works and i see it via that apache2ctl -M command...

Well i have no idea, why it works on old vhcs2 server and not new Omega server, Sad which means i cannot continue my migration as i need to solve this....

Oh well, if i ever find something i guess i will post it... no need to continue here as it is out of the Omega scope i guess....

Thanks for everyone's help anyways...

ROb...


joximu Wrote:mod_rewrite is a apache thing - not php.
If your problem is mod_rewrite, maybe the rewrite rules are not working...???

Code:
# apache2ctl -M
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgid_module (shared)
dir_module (shared)
env_module (shared)
fastcgi_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
Syntax OK
11-24-2007 02:22 AM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #10
RE: _SESSION problem??
robmorin,

I've had trouble migrating websites that rely on mod_rewrite in the past as well... Seeing as your rewrite is actually loaded... Do the sites actually require mod_rewrite themselves? Or do they do some tricky stuff with php to do this on their own? My guess is they use mod_rewrite, but without knowing the applications this is just a guess.

Try this... Are there any .htaccess files that you forgot to copy over? This was my problem, in that i forgot a .htaccess that was in the root directory of the site, which had all the rewrite rules in it. Give a look and see if this is your issue.

-
Jesse
11-25-2007 12:13 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)