?
avatar joomlaproffs
joomlaproffs
12 Feb 2016

We have problem in VirtueMart that category and product detail page not working.

After removed some lines from below file, both page works well.

File Name : libraries/joomla/document/renderer/html/head.php
Error details : Argument 1 passed to Joomla\Utilities\ArrayHelper::toString() must be of the type array, string given, called in /var/www/clients/client1/web35/web/libraries/joomla/document/renderer/html/head.php on line 119

Line no 115 to 120


    // Generate link declarations
    foreach ($document->_links as $link => $linkAtrr)
        {
            $buffer .= $tab . '<link href="' . $link . '" ' . $linkAtrr['relType'] . '="' . $linkAtrr['relation'] . '"';

            if ($temp = ArrayHelper::toString($linkAtrr['attribs']))
            {
                $buffer .= ' ' . $temp;
            }

            $buffer .= ' />' . $lnEnd;
        }
avatar joomlaproffs joomlaproffs - open - 12 Feb 2016
avatar joomlaproffs
joomlaproffs - comment - 12 Feb 2016

To add to this is that we are running a server Nginx, PHP 7.0.3 and MariaDB.

avatar joomlaproffs joomlaproffs - change - 12 Feb 2016
Title
head.php i libraries gives "ArrayHelper::toString() must be of the type array" line 119
head.php in libraries gives "ArrayHelper::toString() must be of the type array" line 119
avatar andrepereiradasilva
andrepereiradasilva - comment - 12 Feb 2016

i think is the same issue described in #8968

If so, it's already resolved in latest staging.
https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/document/renderer/html/head.php

avatar joomlaproffs
joomlaproffs - comment - 12 Feb 2016

Yup that fixed it, thanks

avatar joomlaproffs joomlaproffs - change - 12 Feb 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-02-12 10:20:11
Closed_By joomlaproffs
avatar joomlaproffs joomlaproffs - close - 12 Feb 2016
avatar brianteeman brianteeman - close - 12 Feb 2016
avatar brianteeman brianteeman - change - 22 Apr 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment