Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Image update not working for me.

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

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
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
The administrator has disabled public write access.

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

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

Should be better now.
Fixed.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

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

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
Almost there. . . .
Fatal error: Class 'JFile' not found in ...\demo\administrator\components\com_demo\helpers\file.php on line 758
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
Last Edit: 28 Jun 2016 19:14 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: vlemos

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

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
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
Last Edit: 28 Jun 2016 19:33 by vlemos.
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.

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

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

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

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

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
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++
Last Edit: 29 Jun 2016 00:30 by vlemos.
The administrator has disabled public write access.

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

  • vlemos
  • vlemos's Avatar
  • Online
  • Elite Member
  • Posts: 295
  • Thank you received: 41
  • Karma: 21
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
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
Last Edit: 30 Jun 2016 18:02 by admin.
The administrator has disabled public write access.
Time to create page: 0.075 seconds

Get Started