PivotX is broken on PHP 5.4

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

PivotX is broken on PHP 5.4

Postby libodls » Thu Jun 14, 2012 2:39 am

I downloaded the pivotx latest version, After successful installation, I canot see my article on the home page , only

| Displaying entries 1-10 of 11 | Next page »

:o

I was done in strict accordance with the instructions in the documentation, and I try several times.
I execute pivotx-check.php, result as follows:

Congratulations!
Your server is suitable for PivotX

This server has passed the tests for the following requirements.

This server meets the requirement for the minimum PHP version. You need PHP 5.2.0 or greater and you seem to have PHP 5.4.3.
This server meets the requirement for the amount of memory available to PHP processes. You have 128 Mb avaiable.
This server meets the requirement for PHP Safe mode. Safe mode is Off.
You can use flat file storage.
This server meets the requirement for the minimum MySQL version. You need MySQL 4.1.0 or greater and you seem to have MySQL 5.5.23.
You have the MySQLi extension.
You have the MySQL extension.
You have the SimpleXML extension.
You have the GD extension.
You have the PCRE extension.

I'm a novice, I just want to build my own blog with pivotx, who can tell me how can I do?

thanks! :D
libodls
 
Posts: 2
Joined: Thu Jun 14, 2012 2:21 am

Re: PivotX is broken on PHP 5.4

Postby fms » Thu Jun 14, 2012 5:47 am

Hi,

I cannot see my article on the home page


Possibly I might have met the same situation. I do not have time to track down the root cause,
but downgrading PHP from 5.4 to 5.3.x(5.3.13) may solve it until the patch is provided by the PivotX Team.

I hope this helps.
fms
 
Posts: 11
Joined: Mon Dec 28, 2009 8:36 am

Re: PivotX is broken on PHP 5.4

Postby hansfn » Thu Jun 14, 2012 11:32 am

Well, I happened to upgrade my server to PHP 5.4.3 (by accident) just now. It broke my own site, so I just had to fix it.

On my server the following minimal change fixed everything. (I'll skip the technical explanation of why it was necessary.)

In the file modules/module_smarty.php (line 5442) replace

Code: Select all
function dbGetTemplate($tpl_name, $tpl_source, &$smarty_obj) {

with

Code: Select all
function dbGetTemplate($tpl_name, &$tpl_source, &$smarty_obj) {


Please confirm if this change worked for you too.

PS! You may have to empty the cache before the change has any effect - visit example.org/pivotx/index.php?page=emptycache (or find "Empty cache" in the menus).
hansfn
Developer
 
Posts: 3072
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: PivotX is broken on PHP 5.4

Postby fms » Thu Jun 14, 2012 11:51 am

The accident produce a helpful result! Two PivotX sites have come back to life with PHP 5.4.

Thanks,
fms
 
Posts: 11
Joined: Mon Dec 28, 2009 8:36 am

Re: PivotX is broken on PHP 5.4

Postby libodls » Fri Jun 15, 2012 3:36 am

thanks! :D
libodls
 
Posts: 2
Joined: Thu Jun 14, 2012 2:21 am

Re: PivotX is broken on PHP 5.4

Postby 23WW32 » Tue Aug 21, 2012 7:48 am

thanks!
23WW32
 
Posts: 9
Joined: Fri Mar 02, 2012 9:51 am


Return to 2.x Support Forum

Who is online

Users browsing this forum: No registered users and 0 guests

cron