• A new version of Full Calendar is now available.

    See the details here

Fixed Calendar (fullcalendar) not showing entries

ontarget

Active Member
Hi I am using j!4.4.5 and F4.1 php8.1
I migrated the site from Joomla 3.10
Calendar entries were showing perfectly in Joomla 3 but are not showing in the upgraded site.
I created a new vanilla "Test" calendar from the Events wizard form (using jDate element).
When i try to add an entry it shows the record added JS popup, the list gets populated but nothing shows in the calendar. I turned on Debug and System Errors but nothing showing here.
If i click view-source on the calendar page I can see my entry in the source code:

Code:
phpdebugbar.addDataSet({"__meta":{"....LOTS OF CODE HERE
\"Record added\/updated\"\n ]\n ]\n ]\n \"data\" => array:39 [\n \"aaa_test_calendar___id\" => \"\"\n \"aaa_test_calendar___create_time\" => \"\"\n \"aaa_test_calendar___label\" => \"Hello World\"\n \"aaa_test_calendar___created_by\" => array:1 [\n 0 => \"621\"\n ]\n \"aaa_test_calendar___updated_by\" => array:1 [\n 0 => \"621\"\n ]\n \"aaa_test_calendar___start\" => \"2024-07-17 00:00:00\"\n \"aaa_test_calendar___end\" => \"2024-07-17 00:00:00\"\n \"aaa_test_calendar___update_time\" => \"\"\n \"aaa_test_calendar___staus\" => array:1 [\n 0 => \"1\"\n ]\n \"listid\" => \"26\"\n \"listref\" => \"26\"\n \"rowid\" => \"\"\n \"Itemid\" => \"408\"\n
 
FYI I have now updated this project to Fabrik 4.2 but I am still having the same issue of not being able to see any entries from the list in the fullcalendar viz
 
@troester Thanks for the reply,
I have turned off the J! System debug.
Here is a link to a test public calendar with add / edit / delete access.
Here is the list of test events.
As you can see adding events to the calendar dont show up.
Let me know if you require any further info to debug. I'm sorry but i cant see what i'm doing wrong.
 
I can't see any time setting in your start and end date.
What are your date settings?
What are your viz settings?
Any list prefilters?
 
Hi
Date settings: Tried both jDate and Date elements (default settings) Y-M-D and added a time selector to test.
Viz Settings: See screen shots again pretty much default apart from setting the list Label, Start, End
Screenshot 2024-07-16 at 22.14.21.png
No list prefilters setup.
Left all elements public access

Calendar Viz Admin is showing:
Deprecated: Function strftime() is deprecated in /libraries/src/Form/Field/CalendarField.php on line 322
So i fixed this deprecation with the following code:

PHP:
if ($this->filterFormat) {
    $date = \DateTimeImmutable::createFromFormat('U', strtotime($this->value));
    $this->value = $date->format($this->filterFormat);
} else {
    // Replacing strftime with IntlDateFormatter
    if (class_exists('IntlDateFormatter')) {
        $formatter = new \IntlDateFormatter(
            null,
            \IntlDateFormatter::FULL,
            \IntlDateFormatter::FULL,
            null,
            null,
            $this->format
        );
        $date = \DateTimeImmutable::createFromFormat('U', strtotime($this->value));
        $this->value = $formatter->format($date);
    } else {
        // Fallback to DateTime format if IntlDateFormatter is not available
        $date = \DateTimeImmutable::createFromFormat('U', strtotime($this->value));
        $this->value = $date->format($this->format);
    }
}

date_default_timezone_set($tz);
} else {
$this->value = '';
}

Tried Cassiopea and Yootheme templates.
Really appreciate your help if we cant fix then would you suggest i go for a complete re install?
Thanks
 
Deprecated messages are only notices. You really should not hack J! code.
Lower you J! error reporting level.
Set correct date-time formats
1721169422930.png


Try with real Cassiopeia, i.e. disable all yootheme plugins/framework/system plugins etc.
 
Hi, I had the same problem.
Currently I solved it by deactivating the sef settings.

After solving the initial problem, I encountered the same display problem as you
 
@elmarra Yes you are correct!
It was due to SEF urls, I turned them off and i can now see the entries in the calendar.
I might try to regenerate the .htaccess file to see if i can work out the problem.
 
That's right, I had the same problem since upgrading from f3 to F4.
And it was due to that!
I still haven't been able to correct the htaccess file,I am in vacation.
If you have any news and can send it to me, I would appreciate it
 
It seems to be replicatable with SEF on, Rewriting on and Add Suffix = yes
Add Suffix=no is ok.

No matter if it's an old J3 .htaccess or the latest htacces.txt renamed, J!4, J!5

Can you confirm this behaviour?
 
It seems to be replicatable with SEF on, Rewriting on and Add Suffix = yes
Add Suffix=no is ok.

No matter if it's an old J3 .htaccess or the latest htacces.txt renamed, J!4, J!5

Can you confirm this behaviour?
Yes, exactly, I can confirm this
 
Yes I can confirm same issue on my system using a J!4 .htaccess file
SEF on, Rewriting on and Add Suffix = NOT OK
Add Suffix=no IS OK
 

Members online

No members online now.
Back
Top