Small patch for PortaMx 0.952

Started by Feline, 10 years ago

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

Feline

*
10 years ago
I have found a small bug ..
Description:
If the SSI.php used outside the Forum or is loaded before PortaMx is initiated, a lot of Error occurs from the Load.php.

Fix for the bug:
Open the SSI.php in a Editor and find:
Code Select
// Load the stuff like the menu bar, etc.
if (isset($ssi_layers))
{
$context['template_layers'] = $ssi_layers;
template_header();
}
else
setupThemeContext();


Add BEFORE:
Code Select
//-> start add PortaMx
if(!defined('PortaMx'))
{
require_once($sourcedir . '/PortaMx/PortaMx.php');
PortaMx();
}
//-> end add PortaMx


That'a all ..

Fel
Many are stubborn in relation to the way, but less in relation to the target.

funcouldron

*
#1
10 years ago
i did it ,, u shuld include it in the fix package so new user who downlaod now on will not need to do it manuly ,, btw thanx fotr gr8 help ,,,

but after doing this correction i get this

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /www/110mb.com/f/u/n/c/o/u/l/d/funcouldron/htdocs/fc/SSI.php on line 195

Feline

*
#2
10 years ago
I think, you have that not correct inserted.

Fel
Many are stubborn in relation to the way, but less in relation to the target.

funcouldron

*
#3
10 years ago
i have done it correct,,, its not big task ,, but it gives same error

Cool

*
#4
10 years ago
the fix works fine for me and others.
what do you have on line 195 in SSI.php?
|I Use: SMF 2.0.5 | PortaMx 1.51
Q: What do you do when you see a bear in the woods?
A: Play Dead!
H-A-H-L = Happy Admins Have Linux

funcouldron

*
#5
10 years ago
line 194-199

Code Select
// This shuts down the SSI and shows the footer.
function ssi_shutdown()
{
if (!isset($_GET['ssi_function']) || $_GET['ssi_function'] != 'shutdown')
template_footer();
}

Feline

*
#6
10 years ago
Please attach your SSI.php (as zip).

Fel
Many are stubborn in relation to the way, but less in relation to the target.

Cool

*
#7
10 years ago
can you please find this line:
Code Select
// Load the current user's permissions....

and post the following next 10 lines?

they have to be like this:
Code Select
// Load the current user's permissions....
loadPermissions();
//-> start add PortaMx
if(!defined('PortaMx'))
{
  require_once($sourcedir . '/PortaMx/PortaMx.php');
  PortaMx();
}
//-> end add PortaMx

// Load the stuff like the menu bar, etc.
|I Use: SMF 2.0.5 | PortaMx 1.51
Q: What do you do when you see a bear in the woods?
A: Play Dead!
H-A-H-L = Happy Admins Have Linux

Cool

*
#8
10 years ago
ooops feline was faster
|I Use: SMF 2.0.5 | PortaMx 1.51
Q: What do you do when you see a bear in the woods?
A: Play Dead!
H-A-H-L = Happy Admins Have Linux

funcouldron

*
#9
10 years ago
here it is

[attachment deleted by admin]

Cool

*
#10
10 years ago
don´t know what you have done but the patch was not in your file
her you have a working one

[attachment deleted by admin]
|I Use: SMF 2.0.5 | PortaMx 1.51
Q: What do you do when you see a bear in the woods?
A: Play Dead!
H-A-H-L = Happy Admins Have Linux

funcouldron

*
#11
10 years ago
i know it was not there bcoz after adding patch i was getting error so i removed it

* Shouts

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

*
Feline
a year ago
Today we switched to PHP 7.2 and activate Opcode caching.
Fast .. Very fast *
Feline
2 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
31