News:

Support the VirtueMart project and become a member

Main Menu

invoice_items.php problem

Started by arcoswaak, May 15, 2016, 12:36:21 PM

Previous topic - Next topic

arcoswaak

At the moment I'm working on a shop to do with virtuemart in joomla. All this is neatly only I get the following error messages in the mail an order:
Warning: reset () Expects parameter 1 to be array, boolean given in /xxx.xx/public_html/components/com_virtuemart/views/invoice/tmpl/invoice_items.php on line 77
Warning: current () Expects parameter 1 to be array, boolean given in /xxx.xx/public_html/components/com_virtuemart/views/invoice/tmpl/invoice_items.php on line 78

The site is not seen mention only the emails that the customer and I receive after doing and order.

Could someone help me with this to get these reports right?

turn on Joomla version 3.5.1. and VirtueMart 3.0.16

VirtueMart I have completely removed and reinstalled even completely reset. Unfortunately, I keep the message.


franzpeter

I do not know if that would work, but you can try:
components/com_virtuemart/views/invoice/tmpl/invoice_items.php
by default line 76 says:
if(count($taxBill)==1){

What happens if you replace it with:
if(count($taxBill)===1){

arcoswaak

No that make no sense unfortunately...
do you thing there is somewhere in the tax settings a error?

franzpeter

I do not see that problem with my installation. Are all parts installed. There are three things to install:
com_virtuemart_3.0.16.zip
com_virtuemart.3.0.16_ext_aio.zip
com_tcpdf_1.0.0.zip
Are all three parts installed?

arcoswaak

THE problem was the tax details...
Problem fixed. Thanks!

PRO

also, you should turn off error reporting on a live site.


juanki

Quote from: arcoswaak on May 17, 2016, 12:36:25 PM
THE problem was the tax details...
Problem fixed. Thanks!

Hello, i have the same error. Could you tell me how yopu fixed it?. I don't use any tax. Thanks
Canary islands electronics online shop
http://www.architoner.com

juanki

Hello, i fixed it copying sample data tax configuration. I needed vat tax per product setting. Thanks
Canary islands electronics online shop
http://www.architoner.com

Croc

Web-expert.gr : Joomla Hosting cPanel & Virtuemart Extensions

bluMarmalade

I got the same problem but I don't understand what to do?

i'm running joomla 3.6.2 and VM 3.0.16

GJC Web Design

basically your error reporting is too high for a production site.. these are only warnings

try

error_reporting( E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING );  after the php tag

in the root and admin index.php  if u can't switch it off otherwise

or in the top of the  components/com_virtuemart/views/invoice/tmpl/invoice_items.php (over ride)
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

bluMarmalade

I turned off error reporting in the joomla configuration menu. Then it works for now. But i'm not sure if its a good idea to have it off.

jenkinhill

Turn error reporting on when developing a site, and off for a live site. PHP warnings and notices are often seen when using a higher PHP version that that used when the file was last coded. They can usually be ignored if the site functions OK - if you are pedantic, though, you can fix the code that causes the warning(s).

Sone useful info here:  http://php.net/manual/en/errorfunc.configuration.php
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

bluMarmalade

Thanks for the quick replies, GJC Web Design and jenkinhill! I'll try the code fix later. As long as the site works i'm good.