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

TOPIC:

Image update not working for me. 28 Jun 2016 15:43 #14098

  • vlemos
  • vlemos's Avatar Topic Author
  • Online
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
Hello Admin

Please help, the new image update is not working for me. An item will save only if an image is not selected.

See errors below.

Warning: Missing argument 1 for DemoCkClassModelItem::canEditState(), called in C:\xampp\htdocs\demo\administrator\components\com_demo\classes\model\item.php on line 360 and defined in ...\demo\administrator\components\com_demo\classes\model\item.php on line 371

Notice: Undefined variable: record in ...\demo\administrator\components\com_demo\classes\model\item.php on line 374


USING:
Joomla 3.5.1

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

Image update not working for me. 28 Jun 2016 16:36 #14099

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Ok, sorry.

Should be better now.
Fixed.
Coding is now a piece of cake
The following user(s) said Thank You: vlemos

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

Image update not working for me. 28 Jun 2016 17:30 #14100

  • vlemos
  • vlemos's Avatar Topic Author
  • Online
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
Almost there. . . .

Fatal error: Class 'JFile' not found in ...\demo\administrator\components\com_demo\helpers\file.php on line 758

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

Image update not working for me. 28 Jun 2016 18:59 #14101

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Strange. Wich Project ? Table / Layout ?

For me it is working.

At uploading ?

I will have a closer look. The missing code in this case is :
jimport('joomla.filesystem.file');
Coding is now a piece of cake

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

Image update not working for me. 28 Jun 2016 19:14 #14102

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Now Better ?

I added
jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');


Directly on top of the file.
Soon I will remove all others calls of them in the functions.

Tell me if it is better for you.

Because maybe in the sandbox another call or plugin is instancing them so I couldn"t see that one.
Now it should be working for sure.
Coding is now a piece of cake
The following user(s) said Thank You: vlemos

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

Last edit: by admin.

Image update not working for me. 28 Jun 2016 19:32 #14103

  • vlemos
  • vlemos's Avatar Topic Author
  • Online
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
Still not playing nicely. . . .

But always worked in sandbox. :(

Fatal error: Call to undefined method DemoHelperFile::checkQuota() in ...\demo\administrator\components\com_demo\helpers\file.php on line 1946


Project: Commuter
Layout: Config

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

Last edit: by vlemos.

Image update not working for me. 28 Jun 2016 22:24 #14104

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Ok, sorry, this should not be instanced when you download.

checkQuota is a function ONLY for the sandbox.

It has been a very BIG rewrite, but I am on high availability for you. Don't worry.
Coding is now a piece of cake

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

Image update not working for me. 28 Jun 2016 22:43 #14105

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
And now ?

I think this last problem is fixed.
Another one ?
Coding is now a piece of cake
The following user(s) said Thank You: vlemos

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

Image update not working for me. 29 Jun 2016 00:28 #14106

  • vlemos
  • vlemos's Avatar Topic Author
  • Online
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
Yes, that looks great. . . :woohoo:

Thanks Admin, will continue to work with it and repost any other issues along the way.

Warm regards
vlemos

BTW: how can I get just an icon [image without a selection bar] on a form?

k++

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

Last edit: by vlemos.

Image update not working for me. 30 Jun 2016 04:41 #14112

  • vlemos
  • vlemos's Avatar Topic Author
  • Online
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
Hello Admin

Please help, downloaded a new version of the component and the issue has returned for both front and back-ends.
Fatal error: Class 'JFile' not found in ...\demo\administrator\components\com_demo\helpers\file.php on line 758

Warm regards
vlemos

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

Image update not working for me. 30 Jun 2016 18:01 #14113

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This is not possible.

You might do a mistake.

When I download the last version, the line 758 is a comment.

Check the top of your file (helpers/file.php) is those two lines are present:
jimport('joomla.filesystem.file');
jimport('joomla.filesystem.folder');

I am sure the last version contains them because I just checked right now.
Coding is now a piece of cake

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

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.120 seconds

  Joomla Developpers won't be able to live without J-Cook's Component Creator! Check it out - it'll save you a heap of time coding so you can concentrate on the creative part of developing!
Mind-Your-Biz-Online

Get Started