/    Sign up×
Community /Pin to ProfileBookmark

my server just upgraded php and now nothing works!

This may be a pretty simple fix here, but I don’t really know any PHP. The programmer who wrote this previously has been MIA, and I really need to get this fixed, I have some sites that are down right now because of it.

I’m not sure what proper protocol is, but if someone can help me get this up and running.

I appreciate any help! Attached is a zip file of the script. You can see it in (in)action here:

[url]http://fiberoasis.com[/url]

The problem, is that it’s just not loading any of the pages except for the default, which only shows featured products, and not any products in other categories. The admin area is also not functioning properly, as in, not logging in.

If you need some ftp/admin access, let me know. I don’t want to hand it out to everybody so if you really want to work on this we can take it off the forum and I’ll just work with one person.

THANKS IN ADVANCE!!

Edit: No soliciting.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@ZnupiJul 16.2008 — It's the typical register_globals problem. One solution would be to create a file called ".htaccess" in which you would type:
php_flag register_globals on
and place the file in the root of your site (your 'htdocs' or 'www' folder).

Of course, this is a cheap (and some would say ugly) fix, and won't work in a few years when your host will upgrade to PHP 6. A better fix would be going through all the files and fixing them so they don't rely on the register_globals directive anymore. This wouldn't be hard but it would be tedious and would probably take a lot of time.

[b]EDIT:[/b] I found a better way to do it, which may work with PHP 6, too. No more .htaccess file, but you'll have to add this line at the very beginning of each php file in your site:
[code=php]import_request_variables('gpc');[/code]
Make sure you add this line at the very beginning of the file, but after the first <?php (or <?, if your site uses short tags).
Copy linkTweet thisAlerts:
@ingeroauthorJul 17.2008 — I had a feeling it was going to be an easy fix... so far, looks like everything is working. I asked my client to confirm that everything is working properly. Thank you SO much for your help!
×

Success!

Help @ingero spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...