Author Topic

Sébastien Antoniotti

Thursday 15 May 2008 4:00:12 am

Comment21009

Hi,

I'm trying to use this usefull extension on EZP 4.0.

I followed all setup step, but when I click on the submit button, I'm redirected to the /powercontent/action view, with nothing into the $module_result.content and with this warning in the debug :

Warning: PHP  May 15 2008 12:00:14

Use of undefined constant EZ_MODULE_STATUS_RERUN - assumed 'EZ_MODULE_STATUS_RERUN' in /srv/www/myproject/extension/powercontent/modules/powercontent/action.php on line 223

I have purged all caches after setted up policies fort content/create and powercontent/* to anonymous, but the problem is still here and no content object are created.

I'm using this form :

<form method="post" action={"powercontent/action/"|ezurl}>
  <div class="buttonright">
  <input type="hidden" name="NodeID" value="2" />
  <label>Publish immediately:</label> <input type="checkbox" name="DoPublish" checked="checked" />
    <input type="hidden" name="UseNodeAssigments" value="0" />
  <input type="hidden" name="ClassIdentifier" value="article" />
  <input type="hidden" name="RedirectURIAfterPublish" value="/{$node.url_alias}" />
  <input type="text" name="powercontent_title_ContentObjectAttribute_ezstring_data_text_pcattributeid" value="A new article on my blog" />
  <input type="text" name="powercontent_intro_ContentObjectAttribute_data_text_pcattributeid" value="A new intro on my blog" />
   <input class="classbutton" type="submit" name="CreateButton" value="New article" />
</div>
</form>


Thanks in advance !

eZ Publish Freelance
web : http://www.webaxis.fr