4571 Posts in 1384 Topics by 1376 members
Installing SilverStripe
SilverStripe Forums » Installing SilverStripe » [User Error] Uncaught Exception: Object->__call(): the method 'loaduploaded' does not exist on 'Image'
Getting SilverStripe up and running on your computer and on your web server.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1614 Views |
-
[User Error] Uncaught Exception: Object->__call(): the method 'loaduploaded' does not exist on 'Image'

8 January 2011 at 10:01am
Hello,
I have discovered an issue relating to the case of file extensions for FileListingPage and Gallery page types.
If the file extension is lowercase (ie. jpg), all works fine.
However, if the file extension is uppercase (ie. JPG) this reports errors:
(1) When calling the page:
[User Error] Uncaught Exception: Object->__call(): the method 'loaduploaded' does not exist on 'Image'
(2) When calling the image directly (http://www.domain.com/assets/gallery/image.JPG):
Page Not Found (this is caused by the .htaccess rule protecting the assets folder using FilesMatchIs this working as intended or should this be logged as a bug?
Cheers,
Gary
-
Re: [User Error] Uncaught Exception: Object->__call(): the method 'loaduploaded' does not exist on 'Image'

14 January 2011 at 5:14pm
Hi,
(1) This looks like an API was changed in the core, but the module(?) was not updated. This may need to be patched to call a different method instead of "loaduploaded"
(2) is already raised as a known bug against the 2.4.5 milestone: http://open.silverstripe.org/ticket/6321
Sean
-
Re: [User Error] Uncaught Exception: Object->__call(): the method 'loaduploaded' does not exist on 'Image'

6 June 2011 at 2:03pm Last edited: 6 June 2011 2:13pm
I've just struck the same problem myself.
[User Error] Uncaught Exception: Object->__call(): the method 'loaduploaded' does not exist on 'Image'
I can't anything else on this: how do I fix it?
Added:
Looking around in sapphire/core/model/image.php, I see that there's a function called loadUploadedImage.
But when I call that function (while trying to upload an image called Cricket-Ball-CB-County-01.jpg), I get
[Warning] copy(/var/www/bridge//var/www/bridge/assets/Image/Cricket-Ball-CB-County-01.jpg): failed to open stream: No such file or directory
How do I pass it the right path?
-
Re: [User Error] Uncaught Exception: Object->__call(): the method 'loaduploaded' does not exist on 'Image'

9 June 2011 at 9:30am
*bump*
Anybody..?
-
Re: [User Error] Uncaught Exception: Object->__call(): the method 'loaduploaded' does not exist on 'Image'

9 June 2011 at 9:53am
Hello,
This does not appear to be the same issue that I originally posted.
The cause of your issue is highlighted in this error message:
[Warning] copy(/var/www/bridge//var/www/bridge/assets/Image/Cricket-Ball-CB-County-01.jpg): failed to open stream: No such file or directory'/var/www/bridge/' appears twice in the source path. Does this help?
Cheers,
Gary
| 1614 Views | ||
|
Page:
1
|
Go to Top |



