Skip to content

Notice: Undefined index: instance_name stfalcon_tinymce #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lykich99 opened this issue May 10, 2017 · 7 comments
Closed

Notice: Undefined index: instance_name stfalcon_tinymce #285

lykich99 opened this issue May 10, 2017 · 7 comments

Comments

@lykich99
Copy link

Issue Type:
 - Bug Report
Bundle Version:

Master or exact version, i.e. 6.0.1

Summary:

I use tinymce4, when I click to button in open widows I see next error.

Notice: Undefined index: instance_name
500 Internal Server Error - ContextErrorException

Log

CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Notice: Undefined index: instance_name" at /../../../../www/vendor/helios-ag/fm-elfinder-bundle/Controller/ElFinderController.php line 36
Steps To Reproduce:

config.yml

fm_elfinder:
    instances:
        default:
            locale: %locale%
            editor: tinymce4 
            fullscreen: true 
            include_assets: true 
            connector:
                debug: true          
                roots:  
                    uploads:
                        driver: LocalFileSystem
                        path: uploads
                        upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
                        upload_deny: ['all']
                        upload_max_size: 2M 
                      

stfalcon_tinymce:    
      tinymce_jquery: false    
      selector: ".tinymce"     
      language: %locale%
      theme:         
        simple:             
          theme: "advanced" 
          file_browser_callback : elFinderBrowser
          relative_urls: false        
          plugins: "advlist autolink link image lists charmap preview hr anchor pagebreak searchreplace wordcount visualblocks visualchars code insertdatetime media nonbreaking table contextmenu directionality emoticons paste textcolor "                
          toolbar: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect forecolor backcolor | link unlink anchor | image media | preview code "

twig

  {{ elfinder_tinymce_init4('instance_name',{'width':'900', 'height': '850', 'title':'ElFinder 2.0'} ) }}
   {{ tinymce_init({ theme: {'simple':{'language': app.request.locale, 'height': 400 }} }) }}


@helios-ag
Copy link
Owner

I think it's not a bug, because your

{{ elfinder_tinymce_init4('instance_name',{'width':'900', 'height': '850', 'title':'ElFinder 2.0'} ) }}

should be default, i.e. its a key under instances node in configuration

@lykich99
Copy link
Author

Thanks.
I changed values for deafult and now have next situation in the open window loaded iframe on route http://site.com/elfinder and have error No route found.
I made dir /upload/bob and see editor on the next url http://site.com/elfinder/default/bob#elf_l1_Lw.
What values I have to configured?

@helios-ag
Copy link
Owner

@lykich99, have you registered elfinder routing file?

@lykich99
Copy link
Author

Yes.
ef_connect ANY ANY ANY /efconnect/{instance}/{homeFolder}
elfinder ANY ANY ANY /elfinder/{instance}/{homeFolder}

@helios-ag
Copy link
Owner

I forked symfony-standard, check out elfinder branch and install deps via composer.
Tinymce example placed under url 'http://127.0.0.1:8000/tinymce',
I have used this TinymceBundle

@lykich99
Copy link
Author

lykich99 commented Jun 9, 2017

Thanks.
I used TinymceBundle,Symfony 2.8. After testing I will reply this.

@helios-ag
Copy link
Owner

Closed to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants