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.497 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started