Menu Content

Podpora

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

Item list opens as blank page
(1 viewing) (1) Guest
If you want to ask question about the product features, licensing conditions or other questions prior to purchase, please, do it here.
  • Page:
  • 1
  • 2

TOPIC: Item list opens as blank page

Item list opens as blank page 12 years ago #33955

Hello,

I'm interested in purchasing Book It! Joomla component.
However, I have encountered a rather major error with free version. Whenever I try to access "objects list" on fronted, Joomla generates a blank page (HTML document generated is simply blank).

I could live without list feature, but clicking on "back" after finalizing reservation sends user to objects list anyway which results in blank page.

I've found out that one of the users reported the same problem here. So far nobody provided a solution which makes me worried as I'm really happy about the component and would like to incorporate it in the site that I'm working on.

Also, is Polish translation available in paid version or will I have to do it myself?

---

Joomla 2.5.7 on localhost (uniform server, default config)
Custom template with Bootstrap overrides
Latest jQuery
mod_rewrite disabled
Last Edit: 12 years ago by szmigieldesign.
The topic has been locked.

Re: Item list opens as blank page 12 years ago #33965

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

If you don't need object list, you can remove back links from detail views. But there is probably fatal error on object list. Can you enable Error reporting in Global Configuration -> Server?

What error do you get?

Booking has no Polish translation. Maybe somebody already made it. And offer it on his pages?
ARTIO Support Team
The topic has been locked.

Re: Item list opens as blank page 12 years ago #33967

On main site it gives me just this:

 
Strict Standards: Only variables should be assigned by reference in N:\Szmigieldesign\Works\2012\WorkBand\_www\_serwer\www\components\com_booking\router.php on line 49
 
Strict Standards: Only variables should be assigned by reference in N:\Szmigieldesign\Works\2012\WorkBand\_www\_serwer\www\components\com_booking\router.php on line 7
 


However, there are plenty of similar errors regarding strict standards at different lines when I open object view (ie. Škoda Octavia Combi 2,0 TDI default object) and objects list gives me one huge chunk of errors.
The topic has been locked.

Re: Item list opens as blank page 12 years ago #33976

  • maju
  • OFFLINE
  • Posts: 1107
Ok,

Strict Standards have no effect on functionality. It was shown probably only because of Maximal Error Reporting.

At the end of your list is fatal error.
Open that file:
components/com_booking/views/subjects/tmpl/default.php and modify line 181 from:

foreach ($week->calendar as $day) if (!empty($day->boxes)) break $empty = false;

to:

foreach ($week->calendar as $day) if (!empty($day->boxes)) { $empty = false; break; }

Was this solution helpful? We will repair it for next release.
ARTIO Support Team
Last Edit: 12 years ago by maju.
The topic has been locked.

Re: Item list opens as blank page 12 years ago #33979

I've modified the code on line 181. Unfortunately the problem still persists and at the last line of error message I have:

 
Fatal error: 'break' operator with non-constant operand is no longer supported in N:\Szmigieldesign\Works\2012\WorkBand\_www\_serwer\www\components\com_booking\views\subjects\tmpl\default.php on line 198
 
The topic has been locked.

Re: Item list opens as blank page 12 years ago #33980

  • maju
  • OFFLINE
  • Posts: 1107
Yes, you are right.

Modify lines 197 and 198 from:
if (!$service->canReserve)
break $isReserved = true;

to:
if (!$service->canReserve) {
$isReserved = true;
break;
}

What version of php do you have? I consulted this code with its developer and he never saw this problem.
Maybe you are using new php version 5.4?
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný