Coding error in helpers/calendar.php

  • Chris Gelauff
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago - 3 years 7 months ago #137149 by Chris Gelauff
Coding error in helpers/calendar.php was created by Chris Gelauff
Hi,
I notice that the month navigation arrows of the front-end calendar open a new - blank - window.
I suppose this is because the site root is included in the javascript link.
I hope the developper will correct this in the next update.
If you're encountering the same problem (quite likely), just delete the site root bit in the prev/next links on line 270 & line 325 of /components/com_osservicesbooking/helpers/calendar.php
Last edit: 3 years 7 months ago by Chris Gelauff. Reason: spelling

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #137150 by Mr. Dam
Replied by Mr. Dam on topic Coding error in helpers/calendar.php
Hi Chris,
Not sure with your idea, could you please explain more details your idea with the problems on file: calendar.php
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Chris Gelauff
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 7 months ago - 3 years 7 months ago #137231 by Chris Gelauff
Replied by Chris Gelauff on topic Coding error in helpers/calendar.php
Hi Mr. Dam,

Sorry for my late response, I've been waiting to get a mail alert for your reply.

The problem is that is the JUri::root is mentioned in the lines for the month arrows.
This causes a new window to open.
Of course this window is blank since the URL is javascript.


You'll find the original code and the corrected one in the attached zip file, the differences are on line 292 and 325.

File Attachment:

File Name: calendar.zip
File Size:34 KB
Last edit: 3 years 7 months ago by Chris Gelauff. Reason: Added attachment

Please Log in or Create an account to join the conversation.

More
3 years 7 months ago #137260 by Mr. Dam
Replied by Mr. Dam on topic Coding error in helpers/calendar.php
Hi Chris,
It's strange, we have tested the Calendar arrow carefully on our Test environment, but we don't see any problems. Could you please click on My Downloads at the top and raise new ticket on category: OS Services Booking and provide your site url with super admin account. I will check the problem for you
Thanks
Dam
The following user(s) said Thank You: Chris Gelauff

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago - 3 years 1 month ago #141654 by Maarten
Replied by Maarten on topic Coding error in helpers/calendar.php
I have the same issue with the calendar and the blanc pages.
Is there a solution yet ?

I get the 404 error on the 'my working calender' layout.
The current month is displayed normal, but when I try to change the month with the arrows OR the month dropdown, I get the 404 page.
Last edit: 3 years 1 month ago by Maarten. Reason: update info

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #141669 by Mr. Dam
Replied by Mr. Dam on topic Coding error in helpers/calendar.php
Hi,
Please submit ticket and send your site information with super admin account. I will check the issue for you
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam