Trying to update shortcode 7.x-2.22 to 7.x-2.25 on a live site, update successful but then the site gives WSOD.
(As it's a live site I couldn't get error log but had to roll back immediately).

Comments

xax created an issue. See original summary.

denes.szabo’s picture

How old your PHP? (My tip is, it's outdated).

bramvandenbulcke’s picture

I had the same issue on a website on PHP 5.3.29:

PHP Parse error:  syntax error, unexpected '[' in .../sites/all/modules/shortcode/shortcode.module on line 90

Time to move to a newer PHP version, I guess.

nsherzog’s picture

I'm also experiencing this problem (running 7.22, upgrading to 7.25 gives WSOD)

I'm running PHP 5.3.3

Is there a required version of PHP for this module?

denes.szabo’s picture

Assigned: Unassigned » denes.szabo

The PHP site says: As of PHP 5.4 you can also use the short array syntax, which replaces array() with [].
(http://php.net/manual/en/language.types.array.php)

Today the supported PHP version is 5.6 or newer. http://php.net/supported-versions.php

It's not a big issue, I will change back the old array syntax, but I think, not the best practice to use long time outdated software. It's your responsibility to refresh your PHP.

  • Denes.Szabo committed 937753e on 7.x-2.x
    Issue #2942139 by Denes.Szabo: Fix for upgrade to 7.x-2.25 gives WSOD
    
denes.szabo’s picture

Status: Active » Fixed

Just rolled out the 7.x-2.26 release. Please check this version in your server with your (old) PHP.

denes.szabo’s picture

Status: Fixed » Closed (fixed)
Anonymous’s picture

I just updated the 7.x-2.22 version to 7.x-2.26 and get an WSOD too. I'm running PHP 5.6.33.

denes.szabo’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

@jds23 Can you give me more information about this WSOD? PHP log, what ShortCode did you use, etc.

Anonymous’s picture

@Denes.Szabo Okay it's not a WSOD, it's a HTTP Error 500.

This is what the webspace backend says:

2018-02-26 11:11:27 Error 223.24.120.241 500 GET / HTTP/1.1 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36 334 Apache-Zugriff
2018-02-26 11:11:28 Warning 223.24.120.241 mod_fcgid: stderr: PHP Fatal error: Call to undefined function _shortcode_tags() in /var/www/vhosts/smarte-seiten.de/httpdocs/hcode.dev-ok.de/sites/all/modules/nikadevs_cms/nikadevs_cms.module on line 419 Apache-Fehler

I installed the Hcode Theme from Nikadevs. The real error seems to be located in their module I guess.

denes.szabo’s picture

jds23: seems Nikadevs theme developer knows nothing about input formats and how should use the APIs. :(

I know about nothing Nikadevs cms - it's developer should support newer versions of the ShortCode module, if he used it.
We usually regards functions with _ start as private functions. We do not call these functions directly.

There was a similar issue: https://www.drupal.org/project/shortcode/issues/2918073 - this solution will help you to solve your problem.

aleinad’s picture

the upgrade from 7.x-2.25 to 7.x-2.26 gives me the WSOD in all my Drupal pages

is anybody else getting this issue?