Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Image Upload Problem

Image Upload Problem 16 Mar 2014 23:53 #12296

  • naude
  • naude's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Karma: 0
Hi,

Here is a link to the Error Message

Basically what happens is when you upload an Image, this error occurs "Error loading component: demo11055, 1"
and only shows a default "Exclamation mark" image and not the actual image that was uploaded.

Any help will be appreciated.
The administrator has disabled public write access.

Image Upload Problem 17 Mar 2014 11:53 #12300

  • pbianco
  • pbianco's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
I receive the same Error Message, but in my case no image should be displayed
The administrator has disabled public write access.

Image Upload Problem 18 Mar 2014 10:59 #12302

  • naude
  • naude's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Karma: 0
Nothing!!!!!!!!!!!! ADMIN
The administrator has disabled public write access.

Image Upload Problem 19 Mar 2014 08:27 #12304

  • Tomaselli
  • Tomaselli's Avatar
  • Online
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
The administrator has disabled public write access.

Image Upload Problem 19 Mar 2014 13:08 #12305

  • pbianco
  • pbianco's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Thanks
Now it works
The administrator has disabled public write access.

Image Upload Problem 19 Mar 2014 22:30 #12307

  • naude
  • naude's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Karma: 0
Hi,

Thanks for that, it works when you download your project and edit the helper.php file and run it local on your own machine.
The question here is, my project is far from finished in Cook Builder, is there a way of editing the helper file without having to download your project first?
The administrator has disabled public write access.

Image Upload Problem 19 Mar 2014 23:58 #12308

  • Tomaselli
  • Tomaselli's Avatar
  • Online
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
unfortunately not, any editing of the source code cannot be done in the jcook builder.
I suggest you to use a LAMP on your PC/MAC and continue the development in localhost.
A good one is uniform server, it's the best in my opinion.
Last Edit: 19 Mar 2014 23:58 by Tomaselli.
The administrator has disabled public write access.

Image Upload Problem 20 Mar 2014 01:10 #12309

  • naude
  • naude's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Karma: 0
Cheers mate, But can't a Cook Admin just fix it, it will take him a couple of minutes to do.

I am running it on a local LAMP server and so far Cook is brilliant it saves me loads of time.
The administrator has disabled public write access.

Image Upload Problem 20 Mar 2014 10:05 #12310

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
I tried the Helper file fix but it doesn't seem to work for me... All files are being put into a folder in the root of my site called [COM_SITE]. Is this happening to anyone else? anyone know why? I even tried setting the upload directory to images folder but they still end up in the same place.
The administrator has disabled public write access.

Image Upload Problem 20 Mar 2014 10:45 #12311

  • naude
  • naude's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Karma: 0
Hi,

What fixed it for me was to set the "options", "uploads" directory to a path that actually exist.
In my case I set the "uploads" directory to "/images"

Hope that works for you.
The administrator has disabled public write access.

Image Upload Problem 20 Mar 2014 11:23 #12314

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
Hey thanks for the input but I unfortunately have already tried that but its still being uploaded to the wrong folder! Admin got any ideas or an ETA on a fix?
The administrator has disabled public write access.

Image Upload Problem 20 Mar 2014 12:00 #12315

  • Tomaselli
  • Tomaselli's Avatar
  • Online
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
I've updated the post with the full function code, this will fix your last issue, check it:

http://www.j-cook.pro/index.php/forum/new-tickets/10714-upload-bug
The administrator has disabled public write access.

Image Upload Problem 20 Mar 2014 12:24 #12316

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
Hi, thanks for the reply but I've just tried your updated code and I still have the same issue. All images are being posted to root in a folder called [COM_SITE] still.
The administrator has disabled public write access.

Image Upload Problem 21 Mar 2014 22:43 #12337

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Fixed
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: naude
Time to create page: 0.109 seconds

Get Started