Can not edit articles with status 'Published'
  • I have installed Newscoop 4.2 and imported articles from a database. The articles can be seen on the website and I can see them also in the admin interface. When I click on an article that is 'published', I can't get to the edit page, but if the article is 'new', everything works. 

    Also, I can not move articles in the list of articles to put them in a different section. I get the message "Connection interrupted! Please try again later!" every time, it doesn't matter if they are published or not. If I click on the article (when it is 'new') I can move it, but not if I select it from the list. 

    In the error log, I have this: 

    [02-Sep-2013 16:09:59 Europe/Stockholm] Newscoop error: Array to string conversion in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/admin-files/lib_campsite.php:146

    What can I do about these problems? 
    Post edited by Sebastian Olsson (2) at 2014-01-16 04:46:55
  • 10 Comments sorted by
  • Also cannot delete article from "Action" in the article edit page.
  • Setting the status of the published articles to submitted allows me to move them, one at a time, and then publish them again which of course breaks the edit page again. 

    When I tried to delete an article, I got this error message: 
    Binding an entity with a composite primary key to a query is not supported. You should split the parameter into the explicit fields and bind them seperately.

    And this is the error log from today: 

    [09-Sep-2013 11:11:56 Europe/Stockholm] PHP Fatal error:  Allowed memory size of 100663296 bytes exhausted (tried to allocate 82 bytes) in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php on line 49
    [09-Sep-2013 11:18:46 Europe/Stockholm] Newscoop error: Undefined variable: where in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/plugins/poll/classes/PollSection.php:183
    [09-Sep-2013 11:20:29 Europe/Stockholm] Newscoop error: Array to string conversion in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/admin-files/lib_campsite.php:146
    [09-Sep-2013 11:21:57 Europe/Stockholm] Newscoop error: Undefined variable: where in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/plugins/poll/classes/PollSection.php:183
    [09-Sep-2013 11:24:11 Europe/Stockholm] Newscoop error: Undefined variable: where in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/plugins/poll/classes/PollSection.php:183
    [09-Sep-2013 11:36:50 Europe/Stockholm] PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'Binding an entity with a composite primary key to a query is not supported. You should split the parameter into the explicit fields and bind them seperately.' in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:257
    Stack trace:
    #0 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(245): Doctrine\ORM\AbstractQuery->convertObjectParameterToScalarValue(Object(Newscoop\Entity\Article))
    #1 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(216): Doctrine\ORM\AbstractQuery->processParameterValue(Object(Newscoop\Entity\Article))
    #2 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/library/Newscoop/Entity/Repository/PlaylistArticleRepository.php(52): Doctrine\ORM\AbstractQuery->setParameter(1, Object(Newscoop\Entity\Article))
    #3 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/classes/Article.php(715): Newscoop\Entity\Repository\PlaylistArticleRepository->deleteArticle(55)
    #4 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/admin-files/articles/do_article_action.php(59): Article->delete()
    #5 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/application/modules/admin/controllers/LegacyController.php(133): require_once('/www/webvol20/l...')
    #6 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Controller/Action.php(516): Admin_LegacyController->indexAction()
    #7 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('indexAction')
    #8 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #9 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
    #10 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
    #11 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/public/index.php(87): Zend_Application->run()
    #12 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/index.php(17): require_once('/www/webvol20/l...')
    #13 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/admin.php(2): require_once('/www/webvol20/l...')
    #14 {main}

    Next exception 'Zend_Controller_Exception' with message 'Binding an entity with a composite primary key to a query is not supported. You should split the parameter into the explicit fields and bind them seperately.#0 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(245): Doctrine\ORM\AbstractQuery->convertObjectParameterToScalarValue(Object(Newscoop\Entity\Article))
    #1 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php(216): Doctrine\ORM\AbstractQuery->processParameterValue(Object(Newscoop\Entity\Article))
    #2 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/library/Newscoop/Entity/Repository/PlaylistArticleRepository.php(52): Doctrine\ORM\AbstractQuery->setParameter(1, Object(Newscoop\Entity\Article))
    #3 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/classes/Article.php(715): Newscoop\Entity\Repository\PlaylistArticleRepository->deleteArticle(55)
    #4 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/admin-files/articles/do_article_action.php(59): Article->delete()
    #5 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/application/modules/admin/controllers/LegacyController.php(133): require_once('/www/webvol20/l...')
    #6 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Controller/Action.php(516): Admin_LegacyController->indexAction()
    #7 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('indexAction')
    #8 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #9 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
    #10 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
    #11 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/public/index.php(87): Zend_Application->run()
    #12 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/index.php(17): require_once('/www/webvol20/l...')
    #13 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/admin.php(2): require_once('/www/webvol20/l...')
    #14 {main}' in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Controller/Plugin/Broker.php:336
    Stack trace:
    #0 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Controller/Front.php(965): Zend_Controller_Plugin_Broker->postDispatch(Object(Zend_Controller_Request_Http))
    #1 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
    #2 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
    #3 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/public/index.php(87): Zend_Application->run()
    #4 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/index.php(17): require_once('/www/webvol20/l...')
    #5 /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/admin.php(2): require_once('/www/webvol20/l...')
    #6 {main}
      thrown in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/vendor/bombayworks/zendframework1/library/Zend/Controller/Plugin/Broker.php on line 336

  • This issue is really frustrating. Having to re-publish the article on every change means we get the wrong publish dates on lots of articles and they are sorted in the wrong order. 

    Is there an update coming soon or should I downgrade to a previous version of Newscoop? 
    Post edited by Sebastian Olsson (2) at 2013-11-25 10:41:26
  • When I try to edit a published article or publish an article from the edit page, I get this error message:

    Argument 1 passed to Article::getSEOURLEnd() must be an array, boolean
    given, called in /var/lib/newscoop/admin-files/articles/edit_html.php on
    line 62 and defined
  • Upgrading to Newscoop 4.2.1 fixes the issues with deleting or moving articles, but I can still not edit any article while it is published.
  • It turns out the problem with moving articles was not solved in 4.2.1, it was only working on my test installation on my laptop but not on the host server. This is in the log:

    [22-Jan-2014 16:50:45 Europe/Stockholm] Newscoop error: Array to string conversion in /www/webvol20/lx/qocik3a4fn8yqn5/socialisterna.org/public_html/admin-files/lib_campsite.php:146

  • This was solved in Newscoop version 4.2.4.
  • No, it was not fixed in 4.2.4! It only works on one publication but not the other one. 
  • Shared hosting or other reason newscoop root index.php add at top:
    ini_set('error_reporting','2039');
    or
    error_reporting('E_ALL & ~E_NOTICE');

    or at php.ini:
    error_reporting =  E_ALL & ~E_NOTICE