sympal / sympal
- Source
- Commits
- Network (9)
- Issues (12)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
2 comments Created 14 days ago by tommyd3mdiFatal error when linked asset object is non-existingbugxConcrete failure: Uploaded a SWF image via Sympal and inserted that with [asset:myfile.swf] in a slot. The uploaded file uploads/myfile.swf was later removed from the server and Sympal spit out an error in
sfSympalAssetVideoObject::getEmbed()line 13. Apparently getDoctrineAsset() returns null in this case and the access to theidparameter is unchecked afterwards.Comments
-
Hi,
I changed the L.73 of the sympal/data/bin/installer.php file corresponding to the sympal svn repository by the sympal git repository.
before :
$this->getFilesystem()->execute('svn co http://svn.symfony-project.org/plugins/sfSympalPlugin/trunk plugins/sfSympalPlugin');now:
$this->getFilesystem()->execute('git submodule add git://github.com/sympal/sympal.git plugins/sfSympalPlugin --init');Now to update sfSympalPlugin, you just need to do git submodule foreach "git pull".
It's not an important modification, just a little contribution.
d3xtr
Comments
Would this work if our project is not on git? I mean, what if I don't use git for my project.
I like having an installer, but I think it shouldn't make assumptions on the user setup. Perhaps we can add more dialogs to further customize the installation...
thoughts?
We could add a question of SVN or git during the setup. If you like this you can create an issue here for it.
To be honest, I hate the installer.php and maintaining it. We have so many ways to install Sympal and it is been a time drain to maintain them all and keep them working :)
Please log in to comment.I am ok with not having the Installer. As long we have intall docs.
-
i try to break down on minum:
creating a custom content type for special displaying purpuse:
resulting schema.yml:sfSympalHelp:
actAs: [Timestampable, sfSympalContentTypeTemplate] columns:title: { type: string(255), notnull: true }creating a own task to load existing faq and help content:
protected function _loadData($dispatcher, $formatter)
{$app = sfConfig::get('sf_app', $this->_application); $task = new sfDoctrineDataLoadTask($dispatcher, $formatter); $fixtures = array( $this->getPluginConfiguration('sfSympalHelpPlugin')->getRootDir().'/data/fixtures/init_data.yml' ); $task->run($fixtures, array('append' => $append, 'application' => $app));}
init_data.yml:
<?php $contentTypeId = Doctrine::getTable('sfSympalContentType')->findOneBySlug('help')->getId();
sfSympalHelp:
Help_1:title: How to do things Content: HelpContent_1Help_2:
title: how to do other things Content: HelpContent_2sfSympalContent:
HelpContent_1:content_type_id: <?php echo $contentTypeId; ?> site_id: 1 date_published: '<?php echo date("Y-m-d H:i:s") ?>' Slots: [help_slot_1]HelpContent_2:
content_type_id: <?php echo $contentTypeId; ?> site_id: 1 date_published: '<?php echo date("Y-m-d H:i:s") ?>' Slots: [help_slot_2]sfSympalContentSlot:
help_slot_1:name: body type: Markdown value: Its done like thathelp_slot_2:
name: body type: Markdown value: Its done another wayexecuting the task results in correct mysql, exept that for
sf_sympal_help Table there a always 2 rows added for the referencing content_id
the first one created is:title created_at updated_at content_id
2010-02-27 13:36:21 2010-02-27 13:36:21 35title created_at updated_at content_id
How to do things 2010-02-27 13:36:23 2010-02-27 13:36:23 35Where in sf_sympal_content:(stripped)
id site_id content_type_id date_published
35 1 4 2010-02-27 13:36:20so the sf_sympal_content is inserted, then a empty help entry is added and then the real entry is added with same content_id ....
any suggestions ?
my problem is i have the content for the help section ready and i have to insert it into the db ... and i am not so glad about adding it with php created objects like:
$content = sfSympalContent::createNew('sfSympalHelp'); $content->title = ' How to do things'; $contentSlot = new sfSympalContentSlot(); $contentSlot->setName('body'); $contentSlot->setType('Markdown'); $contentSlot->setValue('Its done like that'); $content->setContentSlot($contentSlot) $content->setDatePublished(time()); $content->site_id = 1; $content->save();
and so on ...
Comments
weaverryan
Sat Feb 27 05:29:15 -0800 2010
| link
It shouldn't matter, but try to move the sfSympalHelp entries to the bottom. I ran into something similar to this before and I fixed it in some simple way. In my case, it was something relatd to your sfSympalHelp saving and creating a sfSympalContent record. Later, when the sfSympalContent entry is read, another is created.
Please log in to comment.I don't think setting the content_type_id in this case will work. The way the models work is it currently requires that the Type relationship is populated properly, and simply setting the id in this case does not work.
You could try making a virtual property with a function like function setFixtureContentTypeId($id) and inside that function fetch the content type for the id and set the reference to Type. In your fixtures you would reference it like fixture_content_type_id: <?php echo $contentTypeId; ?>.
I am not sure if this is the fix for your problem, but using the id like that may not work in this case right now.
-
Hi,
I have a site runnning 1.0.0-ALPHA3 with two languages set up.
When no cache is enabled everything is working fine.
As soon as I enable the menu_cache I have some random errors. Sometimes the page is loading fine, sometimes it's trying to insert a new row in the sf_sympal_content_translation table resulting in the following error.
sfOutputEscaperObjectDecorator: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '10-en' for key 'PRIMARY'Any idea where this could come from?
Thanks
NicoComments
Hmm. I am not sure but it sounds like a problem with your code doing something. Where does the trace say the error comes from?
Please log in to comment.
nicolasricci
Wed Mar 03 06:49:14 -0800 2010
| link
Here is the full trace. I am going to try from a fresh install to see if I can reproduce the error.
sfOutputEscaperObjectDecorator: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '10-en' for key 'PRIMARY'* <a href="/sympal/sympal/issues/#issue/0" class="internal">#0</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/Statement.php(269): Doctrine_Connection->rethrowException(Object(PDOException), Object(Doctrine_Connection_Statement)) * <a href="/sympal/sympal/issues/#issue/1" class="internal">#1</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php(1042): Doctrine_Connection_Statement->execute(Array) * <a href="/sympal/sympal/issues/#issue/2" class="internal">#2</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php(687): Doctrine_Connection->exec('INSERT INTO sf_...', Array) * <a href="/sympal/sympal/issues/#issue/3" class="internal">#3</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/UnitOfWork.php(631): Doctrine_Connection->insert(Object(sfSympalDoctrineTable), Array) * <a href="/sympal/sympal/issues/#issue/4" class="internal">#4</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/UnitOfWork.php(562): Doctrine_Connection_UnitOfWork->processSingleInsert(Object(sfSympalContentTranslation)) * <a href="/sympal/sympal/issues/#issue/5" class="internal">#5</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/UnitOfWork.php(81): Doctrine_Connection_UnitOfWork->insert(Object(sfSympalContentTranslation)) * <a href="/sympal/sympal/issues/#issue/6" class="internal">#6</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php(1691): Doctrine_Connection_UnitOfWork->saveGraph(Object(sfSympalContentTranslation)) * <a href="/sympal/sympal/issues/#issue/7" class="internal">#7</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Collection.php(910): Doctrine_Record->save(Object(Doctrine_Connection_Mysql)) * <a href="/sympal/sympal/issues/#issue/8" class="internal">#8</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/UnitOfWork.php(131): Doctrine_Collection->save(Object(Doctrine_Connection_Mysql)) * <a href="/sympal/sympal/issues/#issue/9" class="internal">#9</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php(1691): Doctrine_Connection_UnitOfWork->saveGraph(Object(sfSympalContent)) * <a href="/sympal/sympal/issues/#issue/10" class="internal">#10</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/model/doctrine/PluginsfSympalContent.class.php(759): Doctrine_Record->save(NULL) * <a href="/sympal/sympal/issues/#issue/11" class="internal">#11</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalRenderingPlugin/lib/replacer/sfSympalContentSyntaxLinkReplacer.class.php(73): PluginsfSympalContent->save() * <a href="/sympal/sympal/issues/#issue/12" class="internal">#12</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalRenderingPlugin/lib/replacer/sfSympalContentSyntaxLinkReplacer.class.php(23): sfSympalContentSyntaxLinkReplacer->_getContentObjects(Array) * <a href="/sympal/sympal/issues/#issue/13" class="internal">#13</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalContentSyntaxPlugin/lib/sfSympalContentReplacer.class.php(56): sfSympalContentSyntaxLinkReplacer->process(Array, '<h2>?????? ????...') * <a href="/sympal/sympal/issues/#issue/14" class="internal">#14</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalContentSyntaxPlugin/lib/sfSympalContentReplacer.class.php(33): sfSympalContentReplacer->processReplacerType('link', Array, '<h2>?????? ????...') * <a href="/sympal/sympal/issues/#issue/15" class="internal">#15</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalContentSyntaxPlugin/lib/sfSympalContentSlotReplacer.class.php(36): sfSympalContentReplacer->replace('<h2>?????? ????...') * <a href="/sympal/sympal/issues/#issue/16" class="internal">#16</a> [internal function]: sfSympalContentSlotReplacer::transformSlotContent('<h2>?????? ????...', Object(sfSympalContentSlotTransformer)) * <a href="/sympal/sympal/issues/#issue/17" class="internal">#17</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalRenderingPlugin/lib/transformer/sfSympalContentSlotTransformer.class.php(84): call_user_func(Array, '<h2>?????? ????...', Object(sfSympalContentSlotTransformer)) * <a href="/sympal/sympal/issues/#issue/18" class="internal">#18</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalRenderingPlugin/lib/transformer/sfSympalContentSlotTransformer.class.php(61): sfSympalContentSlotTransformer->process() * <a href="/sympal/sympal/issues/#issue/19" class="internal">#19</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/model/doctrine/PluginsfSympalContentSlot.class.php(122): sfSympalContentSlotTransformer->render() * <a href="/sympal/sympal/issues/#issue/20" class="internal">#20</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/helper/SympalContentSlotHelper.php(116): PluginsfSympalContentSlot->render() * <a href="/sympal/sympal/issues/#issue/21" class="internal">#21</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/helper/SympalContentSlotHelper.php(139): _get_sympal_content_slot('asside-col1', Array) * <a href="/sympal/sympal/issues/#issue/22" class="internal">#22</a> [internal function]: get_sympal_content_slot2(Object(sfSympalContent), 'asside-col1', 'TinyMCE') * <a href="/sympal/sympal/issues/#issue/23" class="internal">#23</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/helper/SympalContentSlotHelper.php(16): call_user_func_array('get_sympal_cont...', Array) * <a href="/sympal/sympal/issues/#issue/24" class="internal">#24</a> /Users/nicolas/Documents/projects/lexmark/apps/lexmark/modules/sympal_page/templates/_double_column.php(12): get_sympal_content_slot(Object(sfSympalContent), 'asside-col1', 'TinyMCE') * <a href="/sympal/sympal/issues/#issue/25" class="internal">#25</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(3810): require('/Users/nicolas/...') * <a href="/sympal/sympal/issues/#issue/26" class="internal">#26</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/view/sfPartialView.class.php(110): sfPHPView->renderFile('/Users/nicolas/...') * <a href="/sympal/sympal/issues/#issue/27" class="internal">#27</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/helper/PartialHelper.php(218): sfPartialView->render() * <a href="/sympal/sympal/issues/#issue/28" class="internal">#28</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/util/sfSympalToolkit.class.php(191): get_partial('sympal_page/dou...', Array) * <a href="/sympal/sympal/issues/#issue/29" class="internal">#29</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php(59): sfSympalToolkit::getSymfonyResource('sympal_page/dou...', Array) * <a href="/sympal/sympal/issues/#issue/30" class="internal">#30</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalRenderingPlugin/lib/content/sfSympalContentRenderer.class.php(96): sfSympalContentRenderer->render() * <a href="/sympal/sympal/issues/#issue/31" class="internal">#31</a> /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalRenderingPlugin/modules/sympal_content_renderer/templates/indexSuccess.php(1): sfSympalContentRenderer->__toString() * <a href="/sympal/sympal/issues/#issue/32" class="internal">#32</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(3810): require('/Users/nicolas/...') * <a href="/sympal/sympal/issues/#issue/33" class="internal">#33</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(3865): sfPHPView->renderFile('/Users/nicolas/...') * <a href="/sympal/sympal/issues/#issue/34" class="internal">#34</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(972): sfPHPView->render() * <a href="/sympal/sympal/issues/#issue/35" class="internal">#35</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(959): sfExecutionFilter->executeView('sympal_content_...', 'index', 'Success', Array) * <a href="/sympal/sympal/issues/#issue/36" class="internal">#36</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(927): sfExecutionFilter->handleView(Object(sfFilterChain), Object(sympal_content_rendererActions), 'Success') * <a href="/sympal/sympal/issues/#issue/37" class="internal">#37</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(1021): sfExecutionFilter->execute(Object(sfFilterChain)) * <a href="/sympal/sympal/issues/#issue/38" class="internal">#38</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(988): sfFilterChain->execute() * <a href="/sympal/sympal/issues/#issue/39" class="internal">#39</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(1021): sfRenderingFilter->execute(Object(sfFilterChain)) * <a href="/sympal/sympal/issues/#issue/40" class="internal">#40</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(658): sfFilterChain->execute() * <a href="/sympal/sympal/issues/#issue/41" class="internal">#41</a> /Users/nicolas/Documents/projects/lexmark/cache/lexmark/prod/config/config_core_compile.yml.php(2340): sfController->forward('sympal_content_...', 'index') * <a href="/sympal/sympal/issues/#issue/42" class="internal">#42</a> /Users/nicolas/Documents/projects/lexmark/lib/vendor/symfony/lib/util/sfContext.class.php(170): sfFrontWebController->dispatch() * <a href="/sympal/sympal/issues/#issue/43" class="internal">#43</a> /Users/nicolas/Documents/projects/lexmark/web/index.php(7): sfContext->dispatch() * <a href="/sympal/sympal/issues/#issue/44" class="internal">#44</a> {main} -
Call to undefined function get_sympal_content_slot_editor()
1 comment Created 6 days ago by nicolasricciFrom fresh install on latest SVN version
Fatal error: Call to undefined function get_sympal_content_slot_editor() in /Users/nicolas/Documents/projects/lexmark/plugins/sfSympalPlugin/lib/plugins/sfSympalAdminPlugin/modules/sympal_content/templates/edit_slotsSuccess.php on line 19
Comments
Please log in to comment. -
öhm any one ever tested forgot password function ?
i get 500 | Internal Server Error | sfConfigurationException
The route "sf_guard_forgot_password_change" does not exist.seems as if the sfGuardRouting::addRouteForForgotPassword never is called ?
do i have to do it manually ?stack trace:
* at () in SF_ROOT_DIR/lib/vendor/symfony/lib/routing/sfPatternRouting.class.php line 313 ... 310. // named route 311. if (!isset($this->routes[$name])) 312. { 313. throw new sfConfigurationException(sprintf('The route "%s" does not exist.', $name)); 314. } 315. $route = $this->routes[$name]; $this->ensureDefaultParametersAreSet(); 316. } * at sfPatternRouting->generate('sf_guard_forgot_password_change', array('unique_key' => '02c20bd857109a0caee999174e7ef241'), 1) in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/sfWebController.class.php line 74 ... 71. } 72. 73. // routing to generate path 74. $url = $this->context->getRouting()->generate($route, $parameters, $absolute); 75. 76. if ($fragment) 77. { * at sfWebController->genUrl('@sf_guard_forgot_password_change?unique_key=02c20bd857109a0caee999174e7ef241', 1) in SF_ROOT_DIR/lib/vendor/symfony/lib/helper/UrlHelper.php line 88 ... 85. 86. function url_for1($internal_uri, $absolute = false) 87. { 88. return sfContext::getInstance()->getController()->genUrl($internal_uri, $absolute); 89. } 90. 91. /** * at url_for1('@sf_guard_forgot_password_change?unique_key=02c20bd857109a0caee999174e7ef241', 1) in n/a line n/a ... * at call_user_func_array('url_for1', array('@sf_guard_forgot_password_change?unique_key=02c20bd857109a0caee999174e7ef241', 1)) in SF_ROOT_DIR/lib/vendor/symfony/lib/helper/UrlHelper.php line 115 ... 112. $arguments = func_get_args(); 113. if (is_array($arguments[0]) || '@' == substr($arguments[0], 0, 1) || false !== strpos($arguments[0], '/')) 114. { 115. return call_user_func_array('url_for1', $arguments); 116. } 117. else 118. { * at url_for('@sf_guard_forgot_password_change?unique_key=02c20bd857109a0caee999174e7ef241', 1) in SF_ROOT_DIR/lib/vendor/symfony/lib/helper/UrlHelper.php line 45 ... 42. unset($html_options['absolute']); 43. } 44. 45. $html_options['href'] = url_for($internal_uri, $absolute); 46. 47. if (isset($html_options['query_string'])) 48. { * at link_to1('Click to change password', '@sf_guard_forgot_password_change?unique_key=02c20bd857109a0caee999174e7ef241', 'absolute=true') in n/a line n/a ... * at call_user_func_array('link_to1', array('Click to change password', '@sf_guard_forgot_password_change?unique_key=02c20bd857109a0caee999174e7ef241', 'absolute=true')) in SF_ROOT_DIR/lib/vendor/symfony/lib/helper/UrlHelper.php line 168 ... 165. $arguments = func_get_args(); 166. if (empty($arguments[1]) || is_array($arguments[1]) || '@' == substr($arguments[1], 0, 1) || false !== strpos($arguments[1], '/')) 167. { 168. return call_user_func_array('link_to1', $arguments); 169. } 170. else 171. { * at link_to('Click to change password', '@sf_guard_forgot_password_change?unique_key=02c20bd857109a0caee999174e7ef241', 'absolute=true') in SF_ROOT_DIR/plugins/sfSympalPlugin_git/lib/plugins/sfDoctrineGuardPlugin/modules/sfGuardForgotPassword/templates/_send_request.php line 8 ... 5. 6. <?php echo __('You can change your password by clicking the below link which is only valid for 24 hours:', null, 'sf_guard') ?><br/><br/> 7. 8. <?php echo link_to(__('Click to change password', null, 'sf_guard'), '@sf_guard_forgot_password_change?unique_key='.$forgot_password->unique_key, 'absolute=true') ?> * at require('/home/phiamo/workspace/sympal/plugins/sfSympalPlugin_git/lib/plugins/sfDoctrineGuardPlugin/modules/sfGuardForgotPassword/templates/_send_request.php') in SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfPHPView.class.php line 75 ... 72. 73. try 74. { 75. require($_sfFile); 76. } 77. catch (Exception $e) 78. { * at sfPHPView->renderFile('/home/phiamo/workspace/sympal/plugins/sfSympalPlugin_git/lib/plugins/sfDoctrineGuardPlugin/modules/sfGuardForgotPassword/templates/_send_request.php') in SF_ROOT_DIR/lib/vendor/symfony/lib/view/sfPartialView.class.php line 110 ... 107. $this->getAttributeHolder()->set('sf_type', 'partial'); 108. 109. // render template 110. $retval = $this->renderFile($this->getDirectory().'/'.$this->getTemplate()); 111. } 112. catch (Exception $e) 113. { * at sfPartialView->render() in SF_ROOT_DIR/lib/vendor/symfony/lib/helper/PartialHelper.php line 218 ... 215. $view = new $class($context, $moduleName, $actionName, ''); 216. $view->setPartialVars(true === sfConfig::get('sf_escaping_strategy') ? sfOutputEscaper::unescape($vars) : $vars); 217. 218. return $view->render(); 219. } 220. 221. /** * at get_partial('sfGuardForgotPassword/send_request', array('user' => object('sfGuardUser'), 'forgot_password' => object('sfGuardForgotPassword'))) in SF_ROOT_DIR/lib/vendor/symfony/lib/action/sfAction.class.php line 291 ... 288. 289. $vars = null !== $vars ? $vars : $this->varHolder->getAll(); 290. 291. return get_partial($templateName, $vars); 292. } 293. 294. /** * at sfAction->getPartial('sfGuardForgotPassword/send_request', array('user' => object('sfGuardUser'), 'forgot_password' => object('sfGuardForgotPassword'))) in SF_ROOT_DIR/plugins/sfSympalPlugin_git/lib/plugins/sfDoctrineGuardPlugin/modules/sfGuardForgotPassword/lib/BasesfGuardForgotPasswordActions.class.php line 43 ... 40. ->setFrom(sfConfig::get('app_sf_guard_plugin_default_from_email', 'from@noreply.com')) 41. ->setTo($this->form->user->email_address) 42. ->setSubject('Forgot Password Request for '.$this->form->user->username) 43. ->setBody($this->getPartial('sfGuardForgotPassword/send_request', array('user' => $this->form->user, 'forgot_password' => $forgotPassword))) 44. ->setContentType('text/html') 45. ;- at BasesfGuardForgotPasswordActions->executeIndex(object('sfWebRequest'))
in SF_ROOT_DIR/lib/vendor/symfony/lib/action/sfActions.class.php line 60 ...
57. } 58. 59. // run action 60. return $this->$actionToRun($request); 61. } 62. }
- at BasesfGuardForgotPasswordActions->executeIndex(object('sfWebRequest'))
in SF_ROOT_DIR/lib/vendor/symfony/lib/action/sfActions.class.php line 60 ...
- at sfActions->execute(object('sfWebRequest'))
in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php line 92 ...
89. { 90. // execute the action 91. $actionInstance->preExecute(); 92. $viewName = $actionInstance->execute($this->context->getRequest()); 93. $actionInstance->postExecute(); 94. 95. return null === $viewName ? sfView::SUCCESS : $viewName; - at sfExecutionFilter->executeAction(object('sfGuardForgotPasswordActions'))
in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php line 78 ...
75. } 76. } 77. 78. return $this->executeAction($actionInstance); 79. } 80. 81. /** - at sfExecutionFilter->handleAction(object('sfFilterChain'), object('sfGuardForgotPasswordActions'))
in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php line 42 ...
39. { 40. $timer = sfTimerManager::getTimer(sprintf('Action "%s/%s"', $actionInstance->getModuleName(), $actionInstance->getActionName())); 41. 42. $viewName = $this->handleAction($filterChain, $actionInstance); 43. 44. $timer->addTime(); 45. $timer = sfTimerManager::getTimer(sprintf('View "%s" for "%s/%s"', $viewName, $actionInstance->getModuleName(), $actionInstance->getActionName())); - at sfExecutionFilter->execute(object('sfFilterChain'))
in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfFilterChain.class.php line 53 ...
50. } 51. 52. // execute the next filter 53. $this->chain[$this->index]->execute($this); 54. } 55. }
- at sfActions->execute(object('sfWebRequest'))
in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfExecutionFilter.class.php line 92 ...
- at sfFilterChain->execute()
in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php line 33 ...
30. public function execute($filterChain) 31. { 32. // execute next filter 33. $filterChain->execute(); 34. 35. // get response object 36. $response = $this->context->getResponse(); - at sfRenderingFilter->execute(object('sfFilterChain'))
in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfFilterChain.class.php line 53 ...
50. } 51. 52. // execute the next filter 53. $this->chain[$this->index]->execute($this); 54. } 55. }
- at sfFilterChain->execute()
in SF_ROOT_DIR/lib/vendor/symfony/lib/filter/sfRenderingFilter.class.php line 33 ...
- at sfFilterChain->execute()
in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/sfController.class.php line 230 ...
227. } 228. 229. // process the filter chain 230. $filterChain->execute(); 231. } 232. else 233. { - at sfController->forward('sfGuardForgotPassword', 'index')
in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/sfFrontWebController.class.php line 48 ...
45. } 46. 47. // make the first request 48. $this->forward($moduleName, $actionName); 49. } 50. catch (sfException $e) 51. { - at sfFrontWebController->dispatch()
in SF_ROOT_DIR/lib/vendor/symfony/lib/util/sfContext.class.php line 170 ...
167. */ 168. public function dispatch() 169. { 170. $this->getController()->dispatch(); 171. } 172. 173. /** - at sfContext->dispatch() in SF_ROOT_DIR/web/abravision_dev.php line 13 ...
- at sfFilterChain->execute()
in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/sfController.class.php line 230 ...
Comments
Please log in to comment. -
Upgrade from sympal 1.0.0-ALPHA2 to 1.0.0-ALPHA3 broken
1 comment Created 6 days ago by gothicxHi!
First I've downloaded the current sympalsandbox.zip from website and it's version 1.0.0-ALPHA2 and not ALPHA3.
I tried to upgrade using the command: php symfony sympal:upgrade --download-new
Everything went well.. but when I try to open the website, I got an error:
500 | Internal Server Error | Doctrine_Table_Exception
Unknown relation alias EditGroupsThanks
Comments
-
I followed the sympal "1.0 Quick Start Guide" and everything went well, but the "Navigation" menu doesn't work, it says no "routes" defined.
Comments
Please log in to comment. -
The demo page isn't working..
"Oops! The page you asked for could not be found."
Comments
Please log in to comment. -
Working, deploing, upgrading with symfony doctrine and sympal
0 comments Created 5 days ago by phiamoHi Folks,
I don't know how you are developing, and i would like to have some Ideas.
I was building a small Portal with sympal as CMF and building some symfony modules for additional functionality. Now while i was developing the customer gave me a lot of initial text and Pictures and data, which i was building my fixtures with. so while we were in testing phase we found some spelling errors and things to change and I was mostly correcting them in the fixtures to be ables to do a sympal:install --force-reinstall to populate the data. i was adding my changes in svn and on dev server i was doing svn up and force reinstall to get everything up-to-date.from now on the customer will make changes himself, and i am not aware of these to add them to the fixtures. what can i do now if i am adding more models and things to the project, and would need to do something like --build-and-load ?
i was experimenting with doctrine:data-dump and adding my new things onto of the generated yml and trying to do a load of these files, and not using my fixtures anymore.
but that resulted in infinite loops:
Fatal error: Maximum function nesting level of '500' reached, aborting! in lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 341
with that repeating over and over
18.7361 88690136 97. Doctrine_Record->save() lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/UnitOfWork.php:396
18.7361 88690392 98. Doctrine_Connection_UnitOfWork->saveGraph() lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php:1697 18.7363 88691800 99. Doctrine_Connection_UnitOfWork->saveRelatedLocalKeys() lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection/UnitOfWork.php:73so perhabs its a probem in my data or in my thinking or in doctrine (maybe)
anyone any ideas ?
Comments
Please log in to comment. -
New Editmode not usable under certain circumstances
8 comments Created 5 days ago by phiamoas you can see here ...
http://www.goshel.de/edit-mode-1.pngif the edit buttons are on bottom, you cant click them due to the menu...
i liked the old way with edit mode, donno how to solve that in the new one :(
Comments
next problem, had a linebrak on top ... so i am not abled anymore to klick the edit button anymore:
http://www.goshel.de/edit-mode-2.png
thats a problem for customers i think ;(
and the next ... as reported before .. when trying to edit the slots in backend:
Fatal error: Call to undefined function get_sympal_content_slot_editor() in /home/phiamo/workspace/serviceacademy/plugins/sfSympalPlugin/lib/plugins/sfSympalAdminPlugin/modules/sympal_content/templates/edit_slotsSuccess.php on line 19
Call Stack
Time Memory Function Location
1 0.0001 98512 {main}( ) ../serviceacademy_dev.php:0
2 1.3193 35090248 sfContext->dispatch( ) ../serviceacademy_dev.php:13
3 1.3193 35090320 sfFrontWebController->dispatch( ) ../sfContext.class.php:170
4 1.3195 35123360 sfController->forward( ) ../sfFrontWebController.class.php:48
5 1.4479 41566544 sfFilterChain->execute( ) ../sfController.class.php:230
6 1.4481 41568696 sfRenderingFilter->execute( ) ../sfFilterChain.class.php:53
7 1.4481 41568832 sfFilterChain->execute( ) ../sfRenderingFilter.class.php:33
8 1.4482 41570920 sfBasicSecurityFilter->execute( ) ../sfFilterChain.class.php:53
9 1.4485 41571320 sfFilterChain->execute( ) ../sfBasicSecurityFilter.class.php:72
10 1.4487 41573448 sfExecutionFilter->execute( ) ../sfFilterChain.class.php:53
11 1.6194 48698432 sfExecutionFilter->handleView( ) ../sfExecutionFilter.class.php:47
12 1.6194 48698832 sfExecutionFilter->executeView( ) ../sfExecutionFilter.class.php:116
13 1.6260 48754248 sfPHPView->render( ) ../sfExecutionFilter.class.php:155
14 1.6260 48754976 sfPHPView->renderFile( ) ../sfPHPView.class.php:179
15 1.6274 48831336 require( '/home/phiamo/workspace/serviceacademy/plugins/sfSympalPlugin/lib/plugins/sfSympalAdminPlugin/modules/sympal_content/templates/edit_slotsSuccess.php' )so am am using svn revision 28239 with some patches for captchas and things (fixed alredy) for having a working edit mode .... for the moment is there any timeline for bringing sympal edit mode stable again ?
It would be nice to put "Assets, Links (Objects)" in "Content" menu with an access with shortcuts via Lightbox?
The link to "Publish/Unpublish" would be in "My content action" also accessible with a shortcut?
So, sfWebDebugToolBar would be at the bottom like in Symfony2 :)
weaverryan
Fri Mar 05 19:27:30 -0800 2010
| link
phiamo-
There are definitely some pending issues with the new edit mode - they just need to be addressed and then knocked off. There were som problems with the old edit mode - editing one slot at a time and letting the form return its natural validation is more powerful. Also, this new method allows us to open up the editing in a lightbox, which the previous method didn't lend itself to as easily.
BUT, getting a button to float correctly over an area that could be any size and could be inline or block is definitely a challenge. If I readded the ability to double-click the area to edit it, that would certainly help.
The edit mode is functional - it's just got css/display bugs. The majority of those will be rooted out shortly - with help from your feedback.
weaverryan
Sat Mar 06 09:39:21 -0800 2010
| link
phiamo-
Your first issue should now be resolved - I've added back buttons to the edit bar that basically save/cancel all currently open slots.
Let me know what you think.
weaverryan
Sat Mar 06 10:09:57 -0800 2010
| link
You can now double-click anywhere on a content slot to go into edit mode for that slot. The only thing I don't have is a good way to communicate this to the user (it's not at all obvious that you can double-click to edit). If you guys have any ideas, lemme know.
Thx
Please log in to comment.Hi,
I think these changes are cool \o/
I would add a "Ctrl+Shift+E" shortcut to open every slots in edit mode (but no button in sympal_edit_bar).
I changed "Cancel" by "Quit" in http://github.com/nippo/sympal/commit/bd0952fe40250c0f7b3e654d30d141070e1be1b6. I will do it for the new button if you think it's ok.
I don't yet well understand how sfSympalPlugin works but I still think to a way that we would'nt need "sympal_inline_edit_bar_bottom_background" because I don't like it (it's personal :).
I like the idea that if we are not in "edit_mode" we wouln't show this bar.
The first think I'm going to try is to put "Click to publish/unpublish" button in "MyContent Actions" menu.
To communicate this double-click action to the user, I don't know; maybe something with JavaScript?
I don't know if there will be enough time before stable release but it would be nice to have gracefull degradation and unobstructive features for all the CMS.
There is also something cool in google with a PC: if you do a "Shift+?", you see all shortcuts used by google (gmail, greader).
Sorry for my english,
Thanks
-
Hi,
Every time you filter contents (Page, Slots, ...) with "sf_admin_filter" in the admin ui, you have a PostgreSQL issue.
Is there something to with it?
Thanks,
Nico
Comments
Please log in to comment.




What do you think we should do in this situation? Should we automatically strip the asset embed code from the slot and save? Since the file no longer exists on the server, but the content still references it, should we delete or fail gracefully? Maybe fire an event so the developer can decide what to do when a deleted asset is encountered.
I think graceful degration is the correct thing to do; under no circumstances break the site by rendering error 500s - ideally, ignore the tag completly (render it as "") and even more ideally have some kind of global "problems view" for the editor which points him at the error. This could be as easy as having a special log system for these and other problems.