Skip to content

HTMLy 2.7.7 themes throws fatal error on PHP 5.3.0 and 5.4.0 #437

@prbt2016

Description

@prbt2016

Hello,

I tried to install HTMLy manually via zip file i.e :

https://github.com/danpros/htmly/archive/v2.7.7.zip

on PHP 5.3 and also on PHP 5.4.

However, I get the following error while starting manual installation on both the PHP versions i.e :

Fatal error: Can't use function return value in write context in /{{PATH}}/{{TO}}/{{HTMLY}}/themes/twentyfifteen/layout.html.php on line 54, i.e the following code is causing issue :

<?php if(!empty(config('social.twitter')) || !empty(config('social.facebook'))):?>

However, script works fine on PHP 5.5.

Seems that PHP 5.5 syntax is being used and prior to PHP 5.5 empty() supports only variables.

Has the script requirement changed?.

Documentation mentions that PHP 5.3 or higher required
https://docs.htmly.com/basics/requirements

Could you please replicate the issue and fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions