Closed rpostolov closed 9 years ago
Please, i'm really stuck with this bug.
I think maybe it's a js probleme because wei still can see the browser button but i can't see why the js doesn't work. And i can't figure out why the thumbs don't appear when I select them.
Someone please ?
Can you check if there are any JS errors?
Do you have the blueimp image upload JS files included? See here for the config (include_blueimp
), but also check that it is really included/loaded.
When you've selected an image, are you abled to submit? Does it save the images correctly? If it does save, it is probably the missing JS. You could also look at the CSS of the page, it does look a little mangled.
You finally might want to try use the single upload widget first, to see if that works. I've never used the multiple upload widget myself.
Hi @bobvandevijver and thanks for helping me :)
When i upload a file now it's working, Everything is saved Thank to you ! But i still have the problem whit the thumb when i select the file. It does'nt appear. I have also a js errors... see bellow :
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingenerator.min_bootstrap_1.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingenerator.min_icheck_2.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingenerator.min_jquery.slimscroll_3.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingenerator.min_jquery.ba-resize_4.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingenerator.min_jquery.treetable_5.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingenerator.min_app_6.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingenerator.min_main_7.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_bootstrap-collection_1.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_bootstrap-datetimepicker_2.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_daterangepicker_3.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_bootstrap-select_4.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_collection-upload_5.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_double-list_6.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_jquery.elastic_7.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_google-map_8.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_jquery.knob_9.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_jquery.minicolors_10.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_select2_11.js"></script>
<script type="text/javascript" src="/app_dev.php/assetic/js/compiled/admingeneratorformextensions/form-extensions.min_single-upload_12.js"></script>
There are a lot of js that are not loaded and like moment.js, and other... I don't know why...
Here is my back office twig :
{% extends 'AdmingeneratorGeneratorBundle::base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
{% include 'AdmingeneratorFormExtensionsBundle::stylesheets.html.twig' %}
{% if form is defined and form is not empty %}
{{ form_css(form) }}
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% include 'AdmingeneratorFormExtensionsBundle::javascripts.html.twig' %}
{% if form is defined and form is not empty %}
{{ form_js(form) }}
{% endif %}
{% endblock %}
When i load the page i have those two js errors :
$.blueimap is undeffined
uncaught exception: bootstrap-datetimepicker requires Moment.js to be load first
When i select an image i have this js error :
JQuery.easing[this.easing] is not a function
Thank :)
It looks like you do not have jQuery included, and because of that everything else fails to load. Can you try to include jQuery in your head tag?
Hi @bobvandevijver !
Sorry for responding so late but i was trying and trying until i finally read carefuly the documentation you gave me and the comment put in the configuration. Which was saying that i just have tu set inclusion of js at true to let the bundle include those js for me...
###########################################################
#Uploader
admingenerator_form_extensions:
image_manipulator: liip_imagine
upload_manager: vich_uploader
twig:
use_form_resources: true
collection_upload:
async_listener_enabled: false
async_route_name: ~
file_storage: admingenerator.form.file_storage.local
# you need these JS assets for some form types
# if you set it to true, the bundle will include them for you
# otherwise you have to do it manually
include_jquery: true
include_jqueryui: true
include_momentjs: true
include_blueimp: true
include_gmaps: true
What a lost of time....
Thank you, you helped me a lot !!! :)
Hi,
I have an issue with uploading pictures.
I'm on Symfony 2.7.3
The probleme is when i click the button 'choose file' and then when i select pictures, the thumb don't appear. i have only a message, see bellow :
Here is my config.yml
And here is my entity Photo
Thanks for your time and help :)