Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] FATAL ERROR- Multiple components / blank screen

FATAL ERROR- Multiple components / blank screen 21 May 2015 12:10 #13137

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
This happened in another component last night, but was too tired to diagnose

However a much more simpler component, once downloaded (works fine in sandbox) is showing the same problem.

I complete a form, (admin sections) and click save I get a blank screen. When I turned on full error reporting, I see the following

Notice: Undefined index: creation_date in /home/fgwadmin/public_html/administrator/components/com_rtcallout/models/manager.php on line 344

Notice: Undefined index: modification_date in /home/fgwadmin/public_html/administrator/components/com_rtcallout/models/manager.php on line 347

Catchable fatal error: Argument 1 passed to RtcalloutCkClassControllerItem::postSaveHook() must implement interface JModel, instance of RtcalloutModelManager given, called in /home/fgwadmin/public_html/administrator/components/com_rtcallout/classes/controller/item.php on line 898 and defined in /home/fgwadmin/public_html/administrator/components/com_rtcallout/classes/controller/item.php on line 609


This also occurred in another component, but that was with front end editing, I have not captured that error yet but I will add it soon.

My Joomla version is 3.3.6
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

FATAL ERROR- Multiple components / blank screen 21 May 2015 12:14 #13138

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
Oh

The record DOES save completely
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

FATAL ERROR- Multiple components / blank screen 21 May 2015 12:26 #13139

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
Exactly the same on another component.. this time with a front end form. All record info is saving, but if there are images or files to upload, they do not save
Catchable fatal error: Argument 1 passed to PinxxxCkClassControllerItem::postSaveHook() must implement interface JModel, instance of PinxxxModelPin given, called in /home/pinxxx/public_html/components/com_pinxxx/controllers/pin.php on line 271 and defined in /home/pinxxx/public_html/administrator/components/com_pinxxx/classes/controller/item.php on line 609
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

FATAL ERROR- Multiple components / blank screen 21 May 2015 12:27 #13140

  • organicwebs
  • organicwebs's Avatar
  • Offline
  • Premium Member
  • Chris
  • Posts: 133
  • Thank you received: 21
  • Karma: 4
I'm getting the same for my component too.

It was compiling and running OK earlier today.

Frontend form. The record saves - the error is shown - page bombs out without rendering...

Catchable fatal error: Argument 1 passed to OrganicbookkeeperCkClassControllerItem::postSaveHook() must be an instance of JModel, instance of OrganicbookkeeperModelExpensesitem given, called in /home/..../administrator/components/com_organicbookkeeper/classes/controller/item.php on line 898 and defined in /home/..../administrator/components/com_organicbookkeeper/classes/controller/item.php on line 609

Joomla 3.4.1
Beta 2.7 - and Stable 2.7
Embedded JS Yes
Formstyle Condenses
JDOM plugin
Just call me Chris :)
The administrator has disabled public write access.

FATAL ERROR- Multiple components / blank screen 21 May 2015 12:28 #13141

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
Is this a backward compatibility issue with this version of Joomla and the Joomla platform?

Should it be using JModelLegacy?
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

FATAL ERROR- Multiple components / blank screen 21 May 2015 16:49 #13146

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Oh My god.


It was good I just changed it because on 2.5 it raises a problem.

I am just tired of Joomla.
In this case it seems no issue possible !!!

Make an override in another file and load it depending of the file. Oh no it is too crazy stuff !!!!
If somebody find any solution I am very interressed.

For J!2.5 :
protected function postSaveHook(JModel &$model, $validData = array())

For J! > 2.5 :
protected function postSaveHook(JModelLegacy $model, $validData = array())

So we need to have those declarations cross-compatible.
Coding is now a piece of cake
The administrator has disabled public write access.

FATAL ERROR- Multiple components / blank screen 21 May 2015 17:26 #13147

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
Sorry to be dense

i.e I would use
protected function postSaveHook(JModelLegacy $model, $validData = array())

in my components?

Are you going to issue a fix depending on what Jomla version you download for or should we just inject one of the line below (into the item.php class I assume) to fix the issue? I am personally not interested in cross compatible when it comes to Joomla, I only work on 3.2 onwards now
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

FATAL ERROR- Multiple components / blank screen 21 May 2015 17:30 #13148

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Yes, I am actually having a look on that. It will be fixed in few minutes.
Coding is now a piece of cake
The administrator has disabled public write access.

FATAL ERROR- Multiple components / blank screen 21 May 2015 17:50 #13149

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Ok Fixed

Try it again now please,
I removed the type declaration, so you will always get a 'Strict standard' warning, but it is not a big deal.
Coding is now a piece of cake
Last Edit: 21 May 2015 19:43 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: MorganL, organicwebs

FATAL ERROR- Multiple components / blank screen 21 May 2015 21:23 #13158

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
Working ok now.. only tested in the admin area, but as the class folder is shared front and back I expect everything to be ok now
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.
The following user(s) said Thank You: admin

FATAL ERROR- Multiple components / blank screen 22 May 2015 05:56 #13163

  • organicwebs
  • organicwebs's Avatar
  • Offline
  • Premium Member
  • Chris
  • Posts: 133
  • Thank you received: 21
  • Karma: 4
All good for me too!

Thanks Chef - this is why we need you and JCook! :)
Just call me Chris :)
The administrator has disabled public write access.
Time to create page: 0.107 seconds

Get Started