I have a website running Joomla 3.9.1, which uses the Shape5 - Vertex template (one of Shape5's free templates, although the company is now owned by JoomlArt). I am trying to upgrade to PHP 7.2, but every time I try to do so, the entire site breaks. Specifically, we get the following screen:
Error:
0 - Too few arguments to function s5_module_call(), 1 passed in /www/library/templates/s5_vertex/index.php on line 318 and exactly 2 expected
The problem disappears when we switch to a new template, which makes me conclude the problem is related to the template. Unfortunately there are no useful errors in neither the Apache logs nor Joomla's own internal logs. Upgrading to the latest version of the theme did not help. We also disabled a few plugins which were throwing errors and turned Joomla's error reporting up to "Development", but were unable to fix the problem or even determine its cause.
Some more facts which may help:
- Current PHP version (where the site works): 5.6.31
- Database version: 5.5.5-10.2.9-MariaDB
- Apache version: 2.4.6
- Server OS: RHEL 7.6
Short of getting a new theme I am not sure what the solution may be. Does anyone have any further insights?
UPDATE: Here is the block of problem code:
<?php if ($s5_pos_top_row1_1 == "published") { ?>
<div id="s5_pos_top_row1_1" class="s5_float_left" style="max-height:240px;width:<?php echo $s5_pos_top_row1_1_width ?>%">
<?php s5_module_call('top_row1_1'); ?>
</div>
<?php } ?>
As a comparison, here is the block immediately below it. There is definitely a second argument passed:
<?php if ($s5_pos_top_row1_2 == "published") { ?>
<div id="s5_pos_top_row1_2" class="s5_float_left" style="width:<?php echo $s5_pos_top_row1_2_width ?>%">
<?php s5_module_call('top_row1_2','round_box'); ?>
</div>
<?php } ?>
style
argument value is usually supplied from the module objectparams->style
. If you are changing it you may want to go ahead and include that with 'round_box' as a default ifparams->style
is empty.