- Posts: 7
COMMUNITY FORUM
[SOLVED] Problem when I try to upload a picture...
- Guillaume Do Amaral
-
Topic Author
- Offline
- New Member
I'm new to Joomla but I l already love K2.
I'm trying to create some kind of portfolio but something is not working...
When I create an item to show ont the portfolio by using Components => K2 => Items, there are some pictures that I just can't use, with no apparent reason ! It's strange, some pictures work, some other just don't. I select the picture, I validate and then the site loads, loads, loads... to reach nothing, just a white empty page. I have to get back to the previous page, and the picture is not selected. The strangest part is that I'm not even trying tu uplaod some new pictures but just trying to use the one that are already on the server.
Another weird thing : some pictures that won't work with K2 can be used on the site by some other ways (exemple given : I could use them in any article by using JCE).
I don't even think that it's a matter of size, since I'm only using pictures under 150ko... More over, I can use one of the pictures that is 55ko but I can't use another one which is 40ko ! I've also tried to resize the picture that I want to use and make it very small just to be sure that it wasn't the problem, and it still doesn't work.
Is there a way to fix it ?
Thank you
PS : excuse me for my bad english...
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Also, have you tried uploading an image to see what happens?
Please Log in or Create an account to join the conversation.
- Guillaume Do Amaral
-
Topic Author
- Offline
- New Member
- Posts: 7
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Please Log in or Create an account to join the conversation.
- Guillaume Do Amaral
-
Topic Author
- Offline
- New Member
- Posts: 7
I think my K2 version is the 2.6.6
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Try upgrading to Joomla! 3.1.1 and K2 2.6.7
Please Log in or Create an account to join the conversation.
- Guillaume Do Amaral
-
Topic Author
- Offline
- New Member
- Posts: 7
Still not working, unfortunately.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Make sure your logs and tmp folders have the right path and are indeed writable.
Also I am assuming you are trying to use jpg or png images and not bmp or tiff images.
FInally locate in your /administrator folder a file called error_log and see if there are any errors recorded.
Please Log in or Create an account to join the conversation.
- Guillaume Do Amaral
-
Topic Author
- Offline
- New Member
- Posts: 7
Please Log in or Create an account to join the conversation.
- Guillaume Do Amaral
-
Topic Author
- Offline
- New Member
- Posts: 7
EDIT : ok done, it's still not working obviously, and here is what appeared in the apache_error.log :
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP Fatal error: Maximum execution time of 30 seconds exceeded in D:\wamp\www\administrator\components\com_k2\lib\class.upload.php on line 5006, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP Stack trace:, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 1. {main}() D:\wamp\www\administrator\index.php:0, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 2. JAdministrator->dispatch() D:\wamp\www\administrator\index.php:56, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 3. JComponentHelper::renderComponent() D:\wamp\www\administrator\includes\application.php:166, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 4. JComponentHelper::executeComponent() D:\wamp\www\libraries\legacy\component\helper.php:339, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 5. require_once() D:\wamp\www\libraries\legacy\component\helper.php:359, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 6. JControllerLegacy->execute() D:\wamp\www\administrator\components\com_k2\k2.php:135, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 7. K2ControllerItem->apply() D:\wamp\www\libraries\legacy\controller\legacy.php:722, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 8. K2ControllerItem->save() D:\wamp\www\administrator\components\com_k2\controllers\item.php:33, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 9. K2ModelItem->save() D:\wamp\www\administrator\components\com_k2\controllers\item.php:28, referer: localhost/administrator/index.php?option...view=item&cid=33
[Tue Jul 23 11:49:40.031514 2013] [:error] [pid 1788:tid 1572] [client 127.0.0.1:62542] PHP 10. upload->process() D:\wamp\www\administrator\components\com_k2\models\item.php:325, referer: localhost/administrator/index.php?option...view=item&cid=33
Does this help ?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Maximum execution time of 30 seconds exceeded in D:\wamp\www\administrator\components\com_k2\lib\class.upload.php on line 5006, referer: localhost/administrator/index.php?option...view=item&cid=33
This means you need to increase your max execution time. You should try googling on how to do this using a php.ini file with wamp.
On a live server you won't have any issues.
Please Log in or Create an account to join the conversation.
- Guillaume Do Amaral
-
Topic Author
- Offline
- New Member
- Posts: 7
Please Log in or Create an account to join the conversation.
- Artem Baranov
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.