dachcom-digital / pimcore-formbuilder

Pimcore Formbuilder - create forms easily!
Other
92 stars 47 forks source link

Path not found #2

Closed manuelkleinert closed 8 years ago

manuelkleinert commented 8 years ago

After installing all pages no longer work. Get the following error:

Zend_View_Exception script 'content/standard.php' not found in path (/var/www/vhosts/huelfsgesellschaft.pimdev.ch/httpdocs/website/views/layouts/formbuilder/:/var/www/vhosts/huelfsgesellschaft.pimdev.ch/httpdocs/website/views/scripts/formbuilder/:/var/www/vhosts/huelfsgesellschaft.pimdev.ch/httpdocs/plugins/Formbuilder/views/layouts/:/var/www/vhosts/huelfsgesellschaft.pimdev.ch/httpdocs/plugins/Formbuilder/views/scripts/:./views/layouts/:./views/scripts/)

unbenannt

solverat commented 8 years ago

Hi,

this has nothing to do with the formbuilder i think. your controller is requesting the standard view, which is not available.

So youre right setup would be:

Website Setting bildschirmfoto 2016-07-26 um 15 26 38

Controller bildschirmfoto 2016-07-26 um 15 27 23

View bildschirmfoto 2016-07-26 um 15 27 46

manuelkleinert commented 8 years ago

Thank you for your quick response. The standard request is defined...

unbenannt

dpfaffenbauer commented 8 years ago

In fact, thats a real issue with form-builder. I don't know why, but the controller plugin somehow overwrites the scripts-path:

Without Formbuilder, my script-paths look like this:

Array
(
    [0] => /*****/website/views/layouts/
    [1] => /*****/website/views/scripts/
    [2] => ./views/layouts/
    [3] => ./views/scripts/
)

With Formbuilder installed, it looks like this:

Array
(
    [0] => /*****/website/views/layouts/formbuilder/
    [1] => /*****/website/views/scripts/formbuilder/
    [2] => /*****/plugins/Formbuilder/views/layouts/
    [3] => /*****/plugins/Formbuilder/views/scripts/
    [4] => ./views/layouts/
    [5] => ./views/scripts/
)

I am going to further investigate on this.... but the issue should be re-opened.

dpfaffenbauer commented 8 years ago

I am actually really surprised that this ever worked on your environment....

the problem is occurs in \Zend_Controller_Action_Helper_ViewRenderer:498. It checks if the website/view path or any subfolder already exists within the path variable. Since Formbuilder adds the website path, it already exists and won't add the website/scripts path.

Possible Solution: Get rid of that plugin and manually add the paths for the Formbuilder!

solverat commented 8 years ago

Fixed! Thanks! Be sure you've checked the install advices: https://github.com/dachcom-digital/pimcore-formbuilder/blob/master/README.md#Installation