• Hello Fabrik Community

    Fabrik is now in the hands of the development team that brought you Fabrik for Joomla 4. We have recently transitioned the Fabrik site over to a new server and are busy trying to clean it up. We have upgraded the site to Joomla 4 and are running the latest version of Fabrik 4. We have also upgraded the Xenforo forum software to the latest version. Many of the widgets you might have been used to on the forum are no longer operational, many abandoned by the developers. We hope to bring back some of the important ones as we have time.

    Exciting times to be sure.

    The Fabrik 4.0 Official release is now available. In addition, the Fabrik codebase is now available in a public repository. See the notices about these in the announcements section

    We wish to shout out a very big Thank You to all of you who have made donations. They have really helped. But we can always use more...wink..wink..

    Also a big Thank You to those of you who have been assisting others in the forum. This takes a very big burden off of us as we work on bugs, the website and the future of Fabrik.

Timestamp element error

Status
Not open for further replies.

exchudy

New Member
Hi all
After upgrade Joomla to 4.4 and fabrik to zetta i get error when opening form which contains Timestamp element.

error:
0 array_key_exists(): Argument #2 ($array) must be of type array, int given.

no further investigation was made

Best regards
 
Can you turn on J! debug and set error reporting to maximum. Retry the page and report back the call stack. Thanks.
 
upload_2023-10-28_9-20-20.png
 
Can you change line 97 of plugins/fabrik_element/timestamp/timestamp.php to the following:
Code:
            $layoutData->value = $this->getValue($data, $repeatCounter);
and let us know if that fixes the issue. I believe it will.
 
The error is gone.

But no matter if store as GMT or local the stored time is always the local time.

And the time shown is list view is always the stored time + TZ offset.

E.g. my local time (today UTC + 2) is 16:58
The stored time is always 16:58 (new, edit, store as GMT or store as local)
The time in list is always 18:58
 
Not sure how this ever worked. @exchudy can you unzip the attached into your joomla root directory. It includes a replacement for the timestamp.php file. Please report back if it is now working for you. @troester if you would do the same please?
 

Attachments

  • timestamp.zip
    2.1 KB · Views: 7
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top