PHP 7 support

s6930064

Member
Dear Fabrik team,

As Joomla 3.5 soon will be out with PHP 7 support is Fabrik gonna be compatible with PHP 7?
 
I belive it is the last line here that causes the error:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PlgSystemFabrik has a deprecated constructor in /home/xxxxxx/public_html/plugins/system/fabrik/fabrik.php on line 25

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgSystemFlickrsuite_chrome has a deprecated constructor in /home/xxxxxx/public_html/plugins/system/flickrsuite_chrome/flickrsuite_chrome.php on line 34

Fatal error: Cannot use Joomla\String\String as String because 'String' is a special class name in /home/xxxxxx/public_html/components/com_fabrik/helpers/html.php on line 14
 
I just update Fabrik from Github and in my php7+joomla3.5 installation I get:
Fatal error: Cannot use Joomla\String\String as String because 'String' is a special class name in ..\libraries\fabrik\include.php on line 16

If i do not update from Github, Fabrik works with the 'Deprecated' message.
 
I've fixed that in that release I'm building at the moment, although that's to a branch that won't get merged back in to the master. I'll try and remember to made the change in the main branch when I'm done with the build.

-- hugh
 
Just updated to the latest release. Slideshow does not work!

Fatal error: Cannot use Joomla\String\String as String because 'String' is a special class name in /home/xxxxxx/public_html/plugins/fabrik_visualization/slideshow/models/slideshow.php on line 11
 
I updated fabrik to 3.4.3

I believe line 11 in /plugins/fabrik_visualization/slideshow/models/slideshow.php:

use Joomla\String\String;

should be changed to:

use Joomla\String\StringHelper;
 
I updated fabrik to 3.4.3
How? Via Joomla updater?

Or did you download and install the 3.4.3 package? This will not update non-core plugins. If you have additional plugins running you must use the Joomla updater (or download and install the new plugin versions manually).

Is the slideshow viz in the ExtensionManager really showing version 3.4.3?
As I've said: this is not the recent 3.4.3 code
 
Strange.
The recent \plugins\fabrik_visualization\slideshow\models\slideshow.php is
Code:
<?php
/**
* Slideshow viz Model
*
* @package     Joomla.Plugin
* @subpackage  Fabrik.visualization.slideshow
* @copyright   Copyright (C) 2005-2015 fabrikar.com - All rights reserved.
* @license     GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

// No direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.model');

require_once JPATH_SITE . '/components/com_fabrik/models/visualization.php';

/**
* Slideshow viz Model
*
* @package     Joomla.Plugin
* @subpackage  Fabrik.visualization.slideshow
* @since       3.0
*/

class FabrikModelSlideshow extends FabrikFEModelVisualization
{
    /**
     * Get slideshow HTML container markup
     *
     * @return string
     */

    public function getSlideshow()
    {
...
and it's using JString::...
Can you check the modification date of your file? Is it write locked?
 
You can try this:
edit \plugins\fabrik_visualization\slideshow\slideshow.xml, set version to e.g. 3.4.2
in ExtensionsManage "refresh cache" on plugin slideshow viz
now it should show again in ExtensionsUpdate (at least after a "Find Updates")
"update" again and check if it has the new code now
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top