Dan,
Thanks for the thread. I actually had tried that code from Kevin’s post before. I tried it again but with no luck.
Really that fix is for a javascript conflict, but I have no javascript errors, only the PHP error of “Use of undefined constant BASE - assumed ‘BASE’” showing in the Firebug console.
{-----------------------------------------------------------------------}
When I run the following script beneath the safecracker form
<scrXipt type="text/javascript">console.log〈EE.BASE〉;</scrXipt>
It reads “http://www.example.local/?”
This tells me the object EE and “BASE” is good before and after the following script
that I mentioned before:
<scrXipt type="text/javascript" charset="utf-8" src="http://www.huntfishplus.local/?ACT=7&ui=core,widget,mouse,position,draggable,resizable,button,dialog,datepicker&plugin=scrollable,scrollable.navigator,ee_filebrowser,ee_fileuploader,markitup,thickbox,toolbox.expose,overlay,tmpl&v=1312216960"></scrXipt>
In the the above script, I can see the first instance of “BASE” after “setup_upload” in the line containing “url:EE.BASE+”&”+EE.fileuploader.delete_url”. I’m not sure if that has anything to do with the error, but wanted to point it out.
Is there any reason why the FileManager class would not recognize this constant? Any setting in php.ini? etc. Could someone tell me how the ‘BASE’ constant is defined in Filemanager.php?
Thanks