BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> Element Editor
  New Posts New Posts RSS Feed - PHP version [solved]
  FAQ FAQ  Forum Search   Register Register  Login Login

PHP version [solved]

 Post Reply Post Reply
Author
Message
beeder d View Drop Down
Newbie
Newbie


Joined: Mar 25 2021
Location: Canada
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote beeder d Quote  Post ReplyReply Direct Link To This Post Topic: PHP version [solved]
    Posted: Jun 13 2023 at 1:26pm
What version of php does OE use. My host doesn't process my order form page anymore.  Says I need to update WEFiles\Server\WESendMail-v210.php on line 30



Edited by Hobby001 - Jun 25 2023 at 9:23pm
Back to Top
Hobby001 View Drop Down
Admin Group
Admin Group
Avatar

Joined: Jun 05 2018
Location: Canada, Québec
Status: Offline
Points: 6178
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hobby001 Quote  Post ReplyReply Direct Link To This Post Posted: Jun 13 2023 at 1:54pm
OE works fine with php up to php 7.4

To make it work with php 8.0 you need to modify /WEFiles /Server/ServerWESendMail-v210.php

here is a user solution from the french side of th forum

Voici les modifications faites
dans le répertoire /WEFiles /Server/
ouvrir le fichier ServerWESendMail-v210.php

ajouter cette ligne tout en haut avant <?php
<!-- saved from url=(0022)http://internet.e-mail -->

ensuite mettre ce symbole // devant chaque ligne du paragraphe :

// consider magic quotes:
//if (get_magic_quotes_runtime()) set_magic_quotes_runtime(false);
//if (get_magic_quotes_gpc()) {
    // remove slashes before apostrophes etc.
//    foreach($param as $key=>$value) {
//        if (is_array($value)) { // value is an array, not just string (happens if attribut name contains [])
//            foreach($value as $vkey=>$vv)    $param[$key][$vkey] = stripslashes($param[$key][$vkey]);
//        } else
//            $param[$key] = stripslashes($param[$key]); // remove slashes before apostrophes etc.
//    }
//}
Back to Top
beeder d View Drop Down
Newbie
Newbie


Joined: Mar 25 2021
Location: Canada
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote beeder d Quote  Post ReplyReply Direct Link To This Post Posted: Jun 14 2023 at 8:37pm
SmileThank you soooo much.  Very nice fix and works like a charm.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.