VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Peckerton on November 17, 2022, 18:50:45 PM

Title: Login Error
Post by: Peckerton on November 17, 2022, 18:50:45 PM
Hi. I need some assistance, guidance, help etc please. Basically, the hosting company is forcing a change to PHP8. We updated Joomla (3.10.11) and the plugins and everything seems to be fine except for the My Account page. Reverting back to PHP7.4 it works fine but on PHP8 the following error comes up:

Error: Failed opening required '/usr/www/users/kznden/libraries/joomla/document/html/renderer/head.php' (include_path='.:/usr/share/php'): Cannot access offset of type string on string

Any ideas on this error? We're a bit desperate at this stage since PHP7.4 will be remove on 28 Nov...

Thanks
Title: Re: Login Error
Post by: jenkinhill on November 17, 2022, 18:58:13 PM
Which VirtueMart version are you using?
Title: Re: Login Error
Post by: Peckerton on November 18, 2022, 07:35:58 AM
Hi

I updated the files to VirtueMart 4.0.7 10716 in an effort to sort this out but no luck.

Regards
Wynand
Title: Re: Login Error
Post by: GJC Web Design on November 18, 2022, 09:38:53 AM
you need to provide a trace for the error

https://forum.virtuemart.net/index.php?topic=117042.0

Title: Re: Login Error
Post by: Peckerton on November 18, 2022, 16:38:13 PM
I mentioned the error in my original post

Error: Failed opening required '/usr/www/users/kznden/libraries/joomla/document/html/renderer/head.php' (include_path='.:/usr/share/php'): Cannot access offset of type string on string
Title: Re: Login Error
Post by: GJC Web Design on November 18, 2022, 17:16:07 PM
that is an error -- provide also the trace!
Title: Re: Login Error
Post by: Peckerton on November 20, 2022, 09:06:16 AM
Not sure what you mean by trace?
Title: Re: Login Error
Post by: pinochico on November 20, 2022, 12:14:00 PM
Use n3t DEbug plugin - he show trace (all links for files used with login) and show error too

https://bitbucket.org/n3t/n3t-debug/downloads/
Title: Re: Login Error
Post by: Peckerton on November 23, 2022, 15:14:41 PM
I don't know how this works. How do you use this software? Is there steps on it somewhere?
Title: Re: Login Error
Post by: pinochico on November 23, 2022, 16:48:38 PM
add your IP adress and make on.
That is all
Title: Re: Login Error
Post by: Peckerton on November 23, 2022, 17:59:27 PM
Cool I've done this now
Title: Re: Login Error
Post by: Peckerton on November 23, 2022, 18:12:41 PM
I see this. Any ideas?

File: .../www/users/kznden/libraries/src/HTML/HTMLHelper.php:626

616:   
617:                // Old parameters.
618:                $attribs                  = isset($argList[1]) ? $argList[1] : array();
619:                $options['relative']      = isset($argList[2]) ? $argList[2] : false;
620:                $options['pathOnly']      = isset($argList[3]) ? $argList[3] : false;
621:                $options['detectBrowser'] = isset($argList[4]) ? $argList[4] : true;
622:                $options['detectDebug']   = isset($argList[5]) ? $argList[5] : true;
623:            }
624:            else
625:            {
626:                $options['relative']      = isset($options['relative']) ? $options['relative'] : false;
627:                $options['pathOnly']      = isset($options['pathOnly']) ? $options['pathOnly'] : false;
628:                $options['detectBrowser'] = isset($options['detectBrowser']) ? $options['detectBrowser'] : true;
629:                $options['detectDebug']   = isset($options['detectDebug']) ? $options['detectDebug'] : true;
630:            }

And then under the Call Stack:

.../templates/vina_dilima/html/com_virtuemart/user/edit.php:24
.../www/users/kznden/libraries/src/MVC/View/HtmlView.php:701
.../kznden/components/com_virtuemart/helpers/vmview.php:81
.../components/com_virtuemart/views/user/view.html.php:245
.../kznden/components/com_virtuemart/controllers/user.php:59
.../kznden/libraries/src/MVC/Controller/BaseController.php:702
.../users/kznden/components/com_virtuemart/virtuemart.php:128
.../kznden/libraries/src/Component/ComponentHelper.php:402
.../kznden/libraries/src/Component/ComponentHelper.php:377
.../kznden/libraries/src/Application/SiteApplication.php:194
.../kznden/libraries/src/Application/SiteApplication.php:233
.../kznden/libraries/src/Application/CMSApplication.php:225
/usr/www/users/kznden/index.php:49
Title: Re: Login Error
Post by: pinochico on November 23, 2022, 18:59:34 PM
screen will be better
must be like fatal error 500

But problem is in your template not in VM, sorry :)

templates/vina_dilima/html/com_virtuemart/user/edit.php:24

Write developpers of template :)
Title: Re: Login Error
Post by: Peckerton on November 24, 2022, 06:35:04 AM
Thank you. I'll check with them