SMF now on 2.0.16 and supports PHP 7.2: some fixes for PMX 1.54

Started by moyack, 4 months ago

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

moyack

*
4 months ago
Hi:

I'm still a PortaMX lover, and with the new update to 2.0.16 with support for PHP 7.2, portaMX version 1.54 started to show some issues that I?ve been trying to solve:

Single pages not showing: https://www.portamx.com/smf-2-modifications-and-portamx/smf-2015-portamx-154-operator-not-supported-for-strings/msg21495/#msg21495

PHP each() function deprecated, a workaround:

In Sources/PortaMx/LoadData.php

Add at the end of the code:
Code Select
// Custom each() function
function PMX_Each(&$arr) {
    $key = key($arr);
    $result = ($key === null) ? false : [$key, current($arr), 'key' => $key, 'value' => current($arr)];
    next($arr);
    return $result;
}

And replace every each() function with the custom one...

iasdeoupxe

*
#1
4 months ago
Hello,

and thanks for suggesting this fix. As i'm not sure if the upstream github project is accepting this change (will create PRs later) i have done an own fork on github and included this fix (as well as various others):

https://github.com/iasdeoupxe/PortaMx-1.54-ecl

Testing of / further contributions to the source code above are welcome.

moyack

*
#2
4 months ago
Quote from: iasdeoupxe, 4 months agoHello,

and thanks for suggesting this fix. As i'm not sure if the upstream github project is accepting this change (will create PRs later) i have done an own fork on github and included this fix (as well as various others):

https://github.com/iasdeoupxe/PortaMx-1.54-ecl

Testing of / further contributions to the source code above are welcome.
Awesome work!!!

I'll give a hand in all that I can. 

* Shouts

Feline
a year ago
Today we update our Forum to the Version 1.45
Feline
a year ago
Today we update our Forum to Version 1.4
This release is full compatible with the EU GDPR
Feline
2 years ago
Update for PortaMx 1.54 ecl released.
With this updates the Portal works with PHP 7.x and SMF 2.0.15
Feline
2 years ago
PortaMx Forum 1.3
released !

*
Feline
2 years ago
Today we switched to PHP 7.2 and activate Opcode caching.
Fast .. Very fast *
Feline
3 years ago
Today we upgrade our old SMF 2.0 Forum to PortaMx Forum *

* Calendar

Su
Mo
Tu
We
Th
Fr
Sa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30