6

This was working ok on my instance Joomla 3.9.22 with PHP 7.3.5 (and mysql). Then to test this I selected PHP 7.0.33 instead and it gave me an error: Fatal error: Declaration of MyObserver::createObserver($table, $params = Array) must be compatible with JObserverInterface::createObserver(JObservableInterface $observableObject, $params = Array) in C:\wamp64\...


2

With thanks to @glenn-arkell who pointed me in the right direction, for j3.9 this works to stop Joomla writing '0000-00-00 00:00:00' into the checked_out_time field. For other fields (eg modified and any of your own datetime fields) use bind() or prepareTable() and getItem() to set empty dates from a form control to null and null dates back to zero for use ...


1

Assuming that your using a rockettheme gantry 4 template, the head renderer is already loaded (as of version joomla 3.7? several years ago in any case) now, and the included file is gone so just comment out the line in both error.php and offline.php Alternatively you can check for the class so the template would still work in old Joomla if that's a thing. if ...


1

Use Joomla\CMS\Uri\Uri::root(true). Note it returns the path with leading slash. E.g. if site address is https://example.com/joomla/testing/, this returns /joomla/testing.


1

Check and verify the Global Config settings for Log Folder Path and Temp Folder Path, and make sure they are correct, they are within your domain's root folder, and their permissions are good (should by writable, 0755). These paths can sometimes go adrift, often for domains that have been restored from backups. If they are wrong, then either the site's ...


1

after days of searching I found my answer here : https://stackoverflow.com/questions/15090084/how-to-open-bootstrap-modal-as-soon-as-page-opens-if-modal-id-is-present-in-url On page #2 that I call "page2", I have this modal which is hidden on the page because I want so : <!-- Modal --> <div class="modal fade" id="myModal&...


1

I personally use two extensions to trigger modals depending on requirements - Engagebox (where I can create modals and specify triggers etc) and Regular Labs Modals (where I can specify a class that converts the link into a modal). With Regular Labs Modals, you could just add a class to the link and the work would be all done. However, you can also do it ...


1

Joomla needs to have an indication of the menuitem (ie itemid) to know how to display all the stuff around the item being shown - templates, modules etc. It tries to determine the most appropriate menuitem to use based on certain things like what menuitem you're currently on, language etc. It looks as if Joomla is using the itemid of your home page. I ...


Only top voted, non community-wiki answers of a minimum length are eligible