safe_mode

A signature and avatar generator addon

Moderator: zanix

safe_mode

Postby m80falcon » Fri Jul 07, 2006 8:28 pm

Hello,

I have a problem with the siggen and PHP safe_mode. Siggen always displays the following message :

PHP safe_mode is turned on
Image upload/delete functions might not operate properly

If i check the php.ini safe_mode is turned off. Also phpinfo() shows that safe_mode is turned off

http://wow.mighty-force.de/test.php

Does someone know how to fix this ?

Thx for help

m80falcon
m80falcon
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Fri Jul 07, 2006 8:23 pm

safe_mode

Postby ScratchMonkey » Fri Jul 07, 2006 8:35 pm

The relevant code:

Code: Select all
if( ini_get('safe_mode') )
{
        $functions->setMessage('PHP <span class="red">safe_mode</span> is turned <span class="green">on</span><br />Image upload/delete functions <u>might</u> not operate properly');
}


Something must be turning it on.
User avatar
ScratchMonkey
WR.net Expert
WR.net Expert
 
Posts: 212
Joined: Wed Jul 05, 2006 4:32 pm
Location: San Pablo, CA

Re: safe_mode

Postby m80falcon » Fri Jul 07, 2006 11:16 pm

Well ...

... but how to solve the problem ?
m80falcon
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Fri Jul 07, 2006 8:23 pm

safe_mode

Postby ScratchMonkey » Fri Jul 07, 2006 11:44 pm

I'll have to tinker with that later. My system currently has the upload directory read-only because I'm sharing it with several guilds, and I have to look at how to patch the code to allow multiple per-guild upload directories.
User avatar
ScratchMonkey
WR.net Expert
WR.net Expert
 
Posts: 212
Joined: Wed Jul 05, 2006 4:32 pm
Location: San Pablo, CA

safe_mode

Postby zanix » Sat Jul 08, 2006 2:38 am

All that is, is a notice that the image uploading functions might not work

Do you actually have problems with SigGen other than just that notice?
If not, then you have nothing to worry about
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

safe_mode

Postby ScratchMonkey » Sat Jul 08, 2006 5:33 am

I'm puzzled how phpinfo reports safe_mode off, but ini_get reports it on. Could some other config file be injecting an override on the global setting? Perhaps in a .htaccess file somewhere above the roster directory.
User avatar
ScratchMonkey
WR.net Expert
WR.net Expert
 
Posts: 212
Joined: Wed Jul 05, 2006 4:32 pm
Location: San Pablo, CA

safe_mode

Postby zanix » Sat Jul 08, 2006 7:29 am

ScratchMonkey wrote:I'm puzzled how phpinfo reports safe_mode off, but ini_get reports it on. Could some other config file be injecting an override on the global setting? Perhaps in a .htaccess file somewhere above the roster directory.

Possibly
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

safe_mode

Postby m80falcon » Sat Jul 08, 2006 2:48 pm

If it just were a notice, I would ignore it :) But i get the following, too :

Save Images
Save images to server Yes No
Save Image Functions Disabled

So I can't save any sigs as images. And most forums just allow images as signatures and not the following

http://wow.mighty-force.de/addons/siggen/sig.php?name=Esaria&saveonly=0

I don't know where to search for this. An .htacces file ? I don't think so, but i will look for it.
m80falcon
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Fri Jul 07, 2006 8:23 pm

safe_mode

Postby m80falcon » Sat Jul 08, 2006 2:52 pm

I just check it, there is noe .htacces file in the whole structure of the directory.
m80falcon
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Fri Jul 07, 2006 8:23 pm

safe_mode

Postby clanpunisher » Sat Jul 08, 2006 5:26 pm

u could add to the update of each user a sig and ava, this works for me ^^ although php safe_mode
clanpunisher
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Fri Jul 07, 2006 3:00 pm

Re: safe_mode

Postby ScratchMonkey » Sat Jul 08, 2006 5:54 pm

m80falcon wrote:most forums just allow images as signatures and not the following

http://wow.mighty-force.de/addons/siggen/sig.php?name=Esaria&saveonly=0


Look into Apache's mod_rewrite. It lets you take a URL that looks like an image and convert it internally to anything else, like a script invocation.
User avatar
ScratchMonkey
WR.net Expert
WR.net Expert
 
Posts: 212
Joined: Wed Jul 05, 2006 4:32 pm
Location: San Pablo, CA

safe_mode

Postby m80falcon » Sat Jul 08, 2006 6:11 pm

u could add to the update of each user a sig and ava, this works for me ^^ although php safe_mode


The Sig and Avatar gets updated every time, this is not the problem :)

Look into Apache's mod_rewrite. It lets you take a URL that looks like an image and convert it internally to anything else, like a script invocation.


This would be the solution, but how to do this ?
m80falcon
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Fri Jul 07, 2006 8:23 pm

safe_mode

Postby PleegWat » Sat Jul 08, 2006 8:35 pm

You don't even need to. You can use addons/siggen/sig.php/<name>.png in the default setting.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

safe_mode

Postby m80falcon » Mon Jul 10, 2006 11:41 am

Yeah, works great :) THX !
m80falcon
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Fri Jul 07, 2006 8:23 pm

safe_mode

Postby m80falcon » Thu Jul 13, 2006 11:00 am

damn, doesn't work great :(

The signatures now differs from each other. If I use this version :

Image

it doesn't show the actual signatur. If I look at the signature with the following link it displays different values (the true ones for EP) :

Image

How do I get the right values in the first version ?
Last edited by m80falcon on Thu Jul 13, 2006 11:01 am, edited 2 times in total.
m80falcon
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Fri Jul 07, 2006 8:23 pm

Next

Return to SigGen

Who is online

Users browsing this forum: No registered users and 1 guest

cron