Okay
  Public Ticket #900493
Fatal error: tpls/portfolio-single-prevnext.php on line 17​
Closed

Comments

  •  2
    ne1thEr started the conversation

    Hello there,

    I hope you're doing well? I have an issue that I didn't get with my local installation so I'm assuming it's probably an error from my hosting.

    Here is the error I get on top of the page when I'm adding a project in the porfolio : Fatal error: Can't use function return value in write context in /home/xxx/public_html/wp-content/themes/kalium/tpls/portfolio-single-prevnext.php on line 17
    I have your theme in version 1.9.4 (latest) if it can help.
    Thanks,
    Ylan

  •  2
    ne1thEr replied

    Ok so I updated PHP from 5.4 to 5.6 and it's working. I discovered that prior to PHP 5.5, empty() only supports variables. So, we have to use trim($name) == false instead of empty(trim($name)).

    I just want to ensure how I cud keep using PHP 5.4 and fix it. Can you confirm what am I suppose to use?

    if ( ! empty ( trim ( $portfolio_custom_archive_url ) ) ) {
    $portfolio_archive_link = $portfolio_custom_archive_url;

    I'm suppose to use :

    if ( ! empty ( trim ( $portfolio_custom_archive_url ) ) ) == false {
    $portfolio_archive_link = $portfolio_custom_archive_url;

    Is it right?

    Thanks :)

  • [deleted] replied

    You are using an old version of our theme. The latest version for the moment is (1.9.4.2), please update your theme first and then the premium plugins too.

    The easiest way to update our themes is if you use Envato Toolkit or Envato Market plugin. On this link How to update Themes and Plugins you can learn this easy step-by-step procedure :)

    If you are using Envato Market plugin to update your theme, just follow this little procedure http://drops.laborator.co/pLFH

    Important: After you update the theme please don't forget to go to Appearance > Install Plugins to update all your premium plugins to the latest version that we support.

    If you can't update LayerSlider, go to Plugins and deactivate this plugin. Then go to Appearance > Install Plugins, you now can update and then activate Layer Slider again.