Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Error in the price
(1 viewing) (1) Guest
Universal booking and reservations component for Joomla!.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1
  • 2

TOPIC: Error in the price

Error in the price 12 years, 1 month ago #33806

Hi I have error when someone trying to book:
Warning: Invalid argument supplied for foreach() in /var/www/vhosts/xxxxxx.ca/httpdocs/sp/components/com_booking/views/subject/tmpl/default_prices.php on line 71


Please see attached, thank you
Attachments:
The topic has been locked.

Re: Error in the price 12 years, 1 month ago #33810

hi

You can change settings in your Global Configuration. Change Error Reporting to None or Simple. These warnings do not brake functionality of the component.
The topic has been locked.

Re: Error in the price 12 years, 1 month ago #33900

I have disable the error reporting in Joomla global config, but I am still getting this warning. Could there be another reason? Please help.

Also, only some of my availability times are appearing. I expect that there should be times available for everyday. Please see attached screenshots.
Attachments:
The topic has been locked.

Re: Error in the price 12 years ago #33914

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Hello, It's settings of PHP not Joomla. We will fix it in the next version.
You can disable PHP error messages by adding following line at the begining of .htaccess.

php_value error_reporting off'
ARTIO Support Team
The topic has been locked.

Re: Error in the price 12 years ago #34214

Hello,

Thank you for the response, but I get an internal error on my website when I try to add that line to the .htaccess file.

Also, what about the issue with the time availability?

Thank you.
The topic has been locked.

Re: Error in the price 12 years ago #34239

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

You can also try to modify code and repair warning. If you find that file and open it on line 71, there should be foreach. Line before will be probably this:

if (! $this->subject->discounts)

try to modify it to:

if (! $this->subject->discounts && $price->discounts)

Was it helpful?

Second thing, Time availability. There is important prices settings where you can manage what days and dates will be available for Reservation Types. Can you check that settings?
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný