News:

Looking for documentation? Take a look on our wiki

Main Menu

Login Error

Started by Peckerton, November 17, 2022, 18:50:45 PM

Previous topic - Next topic

Peckerton

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

jenkinhill

Which VirtueMart version are you using?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Peckerton

Hi

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

Regards
Wynand

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Peckerton

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

GJC Web Design

that is an error -- provide also the trace!
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Peckerton

Not sure what you mean by trace?

pinochico

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/
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Peckerton

I don't know how this works. How do you use this software? Is there steps on it somewhere?

pinochico

add your IP adress and make on.
That is all
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Peckerton

Cool I've done this now

Peckerton

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

pinochico

#12
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 :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Peckerton

Thank you. I'll check with them