Koozali.org: home of the SME Server

PHP Problem?

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
PHP Problem?
« Reply #15 on: April 08, 2007, 12:10:39 AM »
Quote from: "Rob65"

Other settings that may be interesting to change:

$allowOverride = "all";
$followSymLinks = "enabled";

in etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays


Don't modify the template file. Instead use the DB variables:

http://wiki.contribs.org/DB_Variables_Configuration#Apache_server_ibay_specific_.28httpd-e-smith.29

Rob65

PHP Problem?
« Reply #16 on: April 08, 2007, 08:00:44 AM »
Quote from: "PicsOne"

Don't modify the template file. Instead use the DB variables:

http://wiki.contribs.org/DB_Variables_Configuration#Apache_server_ibay_specific_.28httpd-e-smith.29


I searched a bit to find out how to do this but could not find it.

Thanks for the info,

Rob

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
PHP Problem?
« Reply #17 on: April 08, 2007, 08:26:10 AM »
You are welcome.

Code: [Select]
db accounts setprop ibayname AllowOverride all
db accounts setprop ibayname FollowSymLinks enabled
signal-event ibay-modify ibayname

Offline dave simmons

  • ****
  • 125
  • +0/-0
PHP Problem?
« Reply #18 on: April 10, 2007, 05:20:59 PM »
At last - that's fixed it!

Thanks Rob

Offline dave simmons

  • ****
  • 125
  • +0/-0
Re: PHP Problem?
« Reply #19 on: December 01, 2008, 04:21:46 PM »
Curses - it's broken again!

Situation - very simple php contact form.  Fill in max 10 fields, press on send.  You get a thank you screen and can go further, I get an e-mail with the info from the fields which are filled in.

It's stopped working again, but differently this time. When it broke last time, instead of getting the "thank you" screen, there was just a white screen, and no e-mail was sent.  Thanks to the advice posted by colleagues on the forum, we managed to fix it.

Now it's stopped working again.  I don't know exactly when - if you're not a veterinarian interested in poultry disease this site won't be high on your list of places to visit. 

Joking aside, we get maybe 4 or 5 contacts per year.  In June it worked fine! 

The situation now is slightly different.  Now if someone fills in the fields and presses "send", they DO get through to the thank you screen, and an e-mail is sent, BUT the e-mail is blank - the data entered on the web form doesn't get sent with the e-mail.

The server WAS SME 7.3 when I noticed the problem (Friday).  I have now carried out the update to 7.4 but this has not helped.  I have also tried the things previously suggested in this thread.

I appreciate that this is strictly-speaking probably not a SME problem, but it was working and now it's not.  Nothing has changed in the website code - it was done for us by someone who's unfortunately not around any more - it just works and we leave it alone.  The only changes are the updates to the server.

I would be grateful for any suggestions.

Dave

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: PHP Problem?
« Reply #20 on: December 01, 2008, 07:56:06 PM »
I appreciate that this is strictly-speaking probably not a SME problem, but it was working and now it's not.  Nothing has changed in the website code - it was done for us by someone who's unfortunately not around any more - it just works and we leave it alone.  The only changes are the updates to the server.
Not to spoil you with the technical details but perhaps the origin might be somewhere in your code.
I guess I can help you but I think we need to know a little more on the script. Perhaps you can put it on the net somehow for instance on http://pastebin.com/ so PHP coders, like me can have a look at it (If there are passwords in there be sure to remove them).
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline thomasch

  • *
  • 232
  • +0/-0
Re: PHP Problem?
« Reply #21 on: December 02, 2008, 03:05:28 AM »
Not to spoil you with the technical details but perhaps the origin might be somewhere in your code.
I guess I can help you but I think we need to know a little more on the script. Perhaps you can put it on the net somehow for instance on http://pastebin.com/ so PHP coders, like me can have a look at it (If there are passwords in there be sure to remove them).

What a spoil. This is another reason why I love SMEServer.
Lots of great and helpful people here.

thomas

Offline dave simmons

  • ****
  • 125
  • +0/-0
Re: PHP Problem?
« Reply #22 on: December 02, 2008, 11:57:58 AM »
Not to spoil you with the technical details but perhaps the origin might be somewhere in your code.
I guess I can help you but I think we need to know a little more on the script. Perhaps you can put it on the net somehow for instance on http://pastebin.com/ so PHP coders, like me can have a look at it (If there are passwords in there be sure to remove them).

Hi Cactus,

Thanks for your kind offer.  I have (hopefully) made a site wpsa.pastebin.com.  I have copied the whole contents of a file on our web server called wpsamaillid.php over to this site.  If it's not there, or you need something else, please let me know.

Thank you once again.

Dave

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: PHP Problem?
« Reply #23 on: December 02, 2008, 12:01:38 PM »
If it's not there, or you need something else, please let me know.
It seems not to be there... you can also send it by e-mail, it should be in my profile.Oops, it is there, too quick to jump the gun.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline dave simmons

  • ****
  • 125
  • +0/-0
Re: PHP Problem?
« Reply #24 on: December 02, 2008, 12:40:17 PM »
Ho Cactus,

Have been looking myself, and it seems that the php script is called from a page called contact.html

I have pasted this also in case the fault lies there.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: PHP Problem?
« Reply #25 on: December 02, 2008, 01:02:37 PM »
Ho Cactus,

Have been looking myself, and it seems that the php script is called from a page called contact.html

I have pasted this also in case the fault lies there.
Thanks, but I suspect the problem is in the first script you pasted in pastebin, it relies on the deprecated register_globals function which is turned off by default since PHP 4.2.0. I have send you an e-mail with a quick and dirty work around, which does not require to enable that option again.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline dave simmons

  • ****
  • 125
  • +0/-0
Re: PHP Problem?
« Reply #26 on: December 02, 2008, 01:12:07 PM »
Hi Cactus,

Thanks for the response.  Haven't received a mail.  Did you send it to the hotmail id in my profile?

Maybe you could send to info(at)wpsa.be please

Thank you once again

Offline dave simmons

  • ****
  • 125
  • +0/-0
Re: PHP Problem?
« Reply #27 on: December 02, 2008, 05:16:35 PM »
Hi Cactus,

Found your modifications on Pastebin.

Added them in and it works again.

You are a star!

Thank you.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: PHP Problem?
« Reply #28 on: December 02, 2008, 05:18:22 PM »
Found your modifications on Pastebin.
You should also have received a copy on the e-mailadress you requested some hours ago as well as on your profile e-mailaddress.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline dave simmons

  • ****
  • 125
  • +0/-0
Re: PHP Problem?
« Reply #29 on: December 02, 2008, 06:51:05 PM »
Cactus,

FYI your mails don't seem to be coming in.