Comments (16)
@colinfrei @rryter: can one of you have a look at the current sandbox and see if you figure out why the "Upload" button opens in a new window and why upload is broken? i tried checking out a sandbox from march and got it working, but the problem remains... stbucher has to demo the stuff wednesday, would be great if you could have a look.
from cmf-sandbox.
We didn't handle image uploading at all, all we had was an empty tab for uploading.
That aside, I can't get the current sandbox running (in vagrant):
Fatal error: Declaration of Doctrine\ODM\PHPCR\Mapping\ClassMetadataFactory::doLoadMetadata() must be compatible with that of Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory::doLoadMetadata() in /Users/colinfrei/Sites/cmf/vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/ClassMetadataFactory.php on line 42
from cmf-sandbox.
fixed
from cmf-sandbox.
Hello
I'm playing with the cmf-sandbox but can't seem to upload images with the create and was wondering can I configure (and how to) the admin backend to use tinymce or some rich text input?
thanks
from cmf-sandbox.
@casoetan can use something like firebug to check the response of the upload request or alternatively check in the profiler?
as for using tinycme. i am not sure about the best approach here. best would be to ask @rande, the author of SonataAdminBundle.
from cmf-sandbox.
Thanks, here is what my console comes up with
exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' with message 'Image 'upload' not found at '/cms/content/static/upload'' in C:\Data\Zend\Apache2\htdocs\cas5\cmf-s\vendor\symfony-cmf\create-bundle\Symfony\Cmf\Bundle\CreateBundle\Controller\ImageController.php:115
Stack trace:
#0 [internal function]: Symfony\Cmf\Bundle\CreateBundle\Controller\ImageController->displayAction('upload')
#1 C:\Data\Zend\Apache2\htdocs\cas5\cmf-s\app\bootstrap.php.cache(1426): call_user_func_array(Array, Array)
#2 C:\Data\Zend\Apache2\htdocs\cas5\cmf-s\app\bootstrap.php.cache(1390): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#3 C:\Data\Zend\Apache2\htdocs\cas5\cmf-s\app\bootstrap.php.cache(1566): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#4 C:\Data\Zend\Apache2\htdocs\cas5\cmf-s\app\bootstrap.php.cache(617): Symfony\Bundle\FrameworkBundle\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#5 C:\Data\Zend\Apache2\htdocs\cas5\cmf-s\web\app_dev.php(29): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#6 {main}
from cmf-sandbox.
this error indicates another error just before. specifically it means that the redirect after the upload isnt finding the image that was stored, which would mean there is some error inside PHPCRImageController
. i am traveling currently .. but maybe you can try and debug. if the image could not be stored at all, then the flush()
should have thrown an exception. you can check if something was stored with the app/console doctrine:fixture:dump
command .. the image would be stored by default into /cms/content/static
with a random node name. so i suspect something is going wrong with computing the the id
inside the displayAction()
method.
from cmf-sandbox.
Oh! I hope I wasn't too much of a bother.
I Just checked and nothing is stored, cms/content/static
is empty, but I'll check to see what I can do pls do enjoy your trip, hope you can help when relaxed.
from cmf-sandbox.
no worries. then check what is going on inside uploadAction()
from cmf-sandbox.
Really don't know what to do with the upload method, it all seems good but for some reason its failing
POST http://localhost/cas5/cmf-s/web/app_dev.php/symfony-cmf/create/image/upload 500 (Internal Server Error)
from cmf-sandbox.
there should be more information in the profiler
from cmf-sandbox.
Plain tired, worked through the profiler and still same. maybe its a windows or my setup. Will check through in the morning. Its 12.21 am here.
Thanks for all
from cmf-sandbox.
it can very well be windows since none of the core devs use windows. so we are quite depend end on people like you to test things out
from cmf-sandbox.
I guess so, what can I do to help the team. I'll upload to my server to
really make sure it's windows.
Sent from my iPhone
On 2 Jan 2013, at 09:45, Lukas Kahwe Smith [email protected] wrote:
it can very well be windows since none of the core devs use windows. so we
are quite depend end on people like you to test things out
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/77#issuecomment-11802235.
from cmf-sandbox.
Fixed it. The issue was with includejsfiles-create.html.twig
, it was set to false for
cmfCreateHalloImageUpload
, but once I changed that true, uploads worked.
Thanks for the help and I apologise for taking this long to check it out
from cmf-sandbox.
cmfCreateImageUploadEnabled
is set to a boolean value inside JsloaderController
, which in turn determines the value based on the imageClass
.. is there a bug somewhere in there? if not i guess it needs to be properly documented.
from cmf-sandbox.
Related Issues (20)
- PHPCRException: The Id is immutable HOT 3
- Breadcrumb stopped working HOT 1
- Sandbox offline HOT 3
- CMF Sandbox host: "No space left on device" HOT 1
- Session-Error on live sandbox HOT 1
- Interface language vs content language switch is confusing HOT 2
- Segmentation fault on jackrabit build
- Some missing translations HOT 3
- Problem loading fixtures HOT 3
- Adjust Directory Structure HOT 1
- Use Enviroment Variables instead of parameters.yml HOT 2
- Introduce Unified Web Controller
- Introduce Make File
- Remove current vagrant box and replace by nix environment HOT 1
- Live Demo not working HOT 2
- Can't access admin backend on sandbox demo
- Exception on admin list pages HOT 1
- Admin panel content edit fails (FatalErrorException) HOT 3
- CMF Sandbox v 2.1: Load doctrine fixtures cause Exception HOT 1
- Doesn't work HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmf-sandbox.