Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] PRoblem savin register in 2.5

PRoblem savin register in 2.5 19 May 2015 11:39 #13098

  • emilio
  • emilio's Avatar
  • Offline
  • Junior Member
  • Posts: 31
  • Thank you received: 1
  • Karma: 0
When I save new reg in fornt end I receive this message:
this problem appear in joomla 2.5 instalation clean,

Catchable fatal error: Argument 1 passed to FarmaciaCkClassControllerItem::postSaveHook() must be an instance of JModelLegacy, instance of FarmaciaModelChatitem given, called in /var/www/vhosts/ticsmart.com/farmaciaordunablanca/administrator/components/com_farmacia/classes/controller/item.php on line 898 and defined in /var/www/vhosts/ticsmart.com/farmaciaordunablanca/administrator/components/com_farmacia/classes/controller/item.php on line 609

Warning: spl_autoload() [function.spl-autoload]: open_basedir restriction in effect. File(jfactory.inc) is not within the allowed path(s): (/var/www/vhosts/ticsmart.com/:/tmp/) in /var/www/vhosts/ticsmart.com/farmaciaordunablanca/libraries/joomla/session/storage/database.php on line 71

Warning: spl_autoload() [function.spl-autoload]: open_basedir restriction in effect. File(jfactory.php) is not within the allowed path(s): (/var/www/vhosts/ticsmart.com/:/tmp/) in /var/www/vhosts/ticsmart.com/farmaciaordunablanca/libraries/joomla/session/storage/database.php on line 71

Fatal error: Class 'JFactory' not found in /var/www/vhosts/ticsmart.com/farmaciaordunablanca/libraries/joomla/session/storage/database.php on line 71
if you can imagine, why not do you?
Last Edit: 19 May 2015 11:42 by emilio. Reason: actualice
The administrator has disabled public write access.

PRoblem savin register in 2.5 19 May 2015 12:32 #13104

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Do you want to try again now ?
Coding is now a piece of cake
The administrator has disabled public write access.

PRoblem savin register in 2.5 19 May 2015 14:19 #13113

  • emilio
  • emilio's Avatar
  • Offline
  • Junior Member
  • Posts: 31
  • Thank you received: 1
  • Karma: 0
The porooblem continue. I download and install the component, but when I try to save any record in front end...
Crash my aplication. Please, I need correct this problem, my customer are impatient.
if you can imagine, why not do you?
Last Edit: 19 May 2015 14:21 by emilio.
The administrator has disabled public write access.

PRoblem savin register in 2.5 19 May 2015 16:06 #13114

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I can see you are using the legacy loader. Do you really need it ?
Are you working on Joomla 1.6 ???
Coding is now a piece of cake
The administrator has disabled public write access.

PRoblem savin register in 2.5 19 May 2015 16:16 #13115

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I downloaded (farmacia) and tried in Joomla 3.4 It works like a charm for me.

Can you be more precise please ?
What is the crash ? PHP Error ?

Which Project / Table / Layout ?
Coding is now a piece of cake
The administrator has disabled public write access.

PRoblem savin register in 2.5 19 May 2015 17:03 #13117

  • emilio
  • emilio's Avatar
  • Offline
  • Junior Member
  • Posts: 31
  • Thank you received: 1
  • Karma: 0
I disabled LEgacy to generate proyect.
I generate and reinstall my component, but the problem continue
I work in joomla 2.5
url: farmaciaordunablanca.ticsmart.com/

Open chat option menu, create a new register, and click on save

Tray with: user: demo
Pass: never
if you can imagine, why not do you?
The administrator has disabled public write access.

PRoblem savin register in 2.5 19 May 2015 17:36 #13118

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I checked it.
I found effectlivly a problem, but I am not sure.

in
classes/controller/item.php

the declaration of postSaveHook() is different in 2.5

I changed the declaration :
protected function postSaveHook(JModelLegacy $model, $validData = array())

To :
protected function postSaveHook(JModel $model, $validData = array())

You can do it manually, or download again.

I tell you I am not sure, but It might solve your problem.

(Don't car the strict standards, I have no choice for having cross compatibility)
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.094 seconds

Get Started