Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • emilio
  • emilio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 1
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?

Please Log in or Create an account to join the conversation.

Last edit: by emilio. Reason: actualice

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Do you want to try again now ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

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

  • emilio
  • emilio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 1
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?

Please Log in or Create an account to join the conversation.

Last edit: by emilio.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

  • emilio
  • emilio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 31
  • Thank you received: 1
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?

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.240 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started