Trying to upgrade from Newscoop 4.2.4 to 4.3 or latest version.
  • Trying to upgrade from Newscoop 4.2.4 to 4.3 or latest version. Trying to run the upgrade.php script from the browser and I get nothing. I am using a remote connection if that makes a difference. Is it possible to just do an upgrade from terminal? If so, a sequence of commands would be appreciated. I'm in a Debian OS. I'm a newbie to Linux but I'm program savvy so I'm not to bad. Thank you in advance.
  • 11 Comments sorted by
  • For upgrade Newscoop follow instruction from this file Step by step.
  • Hello!
    I need help too for upgrade from 2.4.2 to 4.3.
    I make fresh instal of 4.3 from tarbal.
    Everything was going OK! Without errors or warrnings.

    I followed the instructions to upgrade from 4.2.4 to 4.3.
    https://github.com/sourcefabric/Newscoop/blob/v4.3/newscoop/docs/UPGRADE_4_3.md

    I have problems with site  when restore my backup (4.2.4) and even if
    I restore backup from your official demo (4.2.4) via:
    /var/www/users/beta4/newscoop/bin/newscoop-restore -b backup-newscoop-demo.tar.gz -e -s

    Restore  was going OK! Without errors or warrnings.

    Restart apache. Ok.
    Login to admin and make alias and user changes...Ok.

    Copy
    legacy plugins compatible with Newscoop 4.3.x.Ok.

    1.st problem: after updating composer and run command

    www$ php composer.phar dump-autoload —-optimize

      [RuntimeException]

      Too many arguments.

    dump-autoload [-o|--optimize] [--no-dev]

    Also can not manipulate with plugins from admin area. (blank screen)
    Apache log:

    [Mon Jan 12 11:20:21.844314 2015] [:error] [pid 5010] [client xx.xx.9.93:2297] PHP Fatal error:  Class 'MetaDebate' not found in /var/www/users/beta4/newscoop/plugins/debate/debate.info.php on line 123, referer: http://beta4.example.com/admin/
    [Mon Jan 12 11:20:30.731139 2015] [:error] [pid 6061] [client xx.xx.9.93:2300] PHP Fatal error:  Class 'Debate' not found in /var/www/users/beta4/newscoop/plugins/debate/admin-files/debate/index.php on line 15, referer: http://beta4.example.com/admin/
    [Mon Jan 12 11:20:36.220143 2015] [:error] [pid 6063] [client xx.xx.9.93:2301] PHP Fatal error:  Class 'Poll' not found in /var/www/users/beta4/newscoop/plugins/poll/admin-files/poll/index.php on line 15, referer: http://beta4.example.com/admin/

    2.nd problem:
    Try to test frontend and Nothing!
    Blank page, without any line in source.

    Thanks for the help!
    Robert
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    On Mon, Jan 12, 2015 at 1:30 PM, RobertB <<br />newscoop-support@lists.sourcefabric.org> wrote:

    >
    >
    > *1.st problem: after updating composer and run command*
    >
    > www$ php composer.phar dump-autoload —-optimize
    >
    > [RuntimeException]
    >
    > Too many arguments.
    >
    > dump-autoload [-o|--optimize] [--no-dev]
    >
    >
    > try these commands:
    php composer.phar install --no-dev
    php composer.phar dump-autoload
  • Dear Andrey,
    thanks!
    Problem solved. It works perfect!

    >
    >
    > try these commands:

    php composer.phar install --no-dev

    php composer.phar dump-autoload



    But I have 3.rd problem with DELETING themes from Available themes folder.
    If I choose Delete under the Actions menu, nothing happend:

    Errors in apache log:

    [Mon Jan 12 20:41:27.054066 2015] [:error] [pid 18892] [client xx.xx.xx.xx:62550] Newscoop error: Undefined index: publications in /var/www/users/beta4/newscoop/application/modules/admin/controllers/ThemesController.php:587, referer: http://beta4.test.com/admin/themes
    [Mon Jan 12 20:41:27.057450 2015] [:error] [pid 18892] [client xx.xx.xx.xx:62550] Newscoop error: Invalid argument supplied for foreach() in /var/www/users/beta4/newscoop/application/modules/admin/controllers/ThemesController.php:587, referer: http://beta4.test.com/admin/themes

    Thanks for your help!
    Robert
  • Dear Andrey,
    what does this mean in apache log:
    [Thu Jan 15 18:29:33.085505 2015] [:error] [pid 19100] [client x.x.x.x:3835] PHP Fatal error:  Call to a member function getId() on a non-object in /var/www/users/beta4/newscoop/library/Newscoop/Services/IssueService.php on line 104

    Admin is blank?
    Front page is OK.

    Because of problems with 4.3.0, I make fresh install of 4.3.1 from Github,
    restore backup from 4.2.4 without errors,
    place fixed legacy plugins to newscoop/plugins/
    and as you suggested

    php composer.phar install --no-dev
    php composer.phar dump-autoload
    rm -rf cache/*
    and restart apache...

    Robert<br>
    Post edited by RobertB at 2015-01-15 12:44:39
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    yes, it's a known bug in 4.3.1. You can use latest code from 4.3.x branch (
    https://github.com/sourcefabric/Newscoop/tree/v4.3) or wait for coming
    4.3.2 release.

    On Thu, Jan 15, 2015 at 8:43 PM, RobertB <<br />newscoop-support@lists.sourcefabric.org> wrote:

    > Dear Andrey,
    > what does this mean in apache log:
    > [Thu Jan 15 18:29:33.085505 2015] [:error] [pid 19100] [client
    > x.x.x.x:3835] PHP Fatal error: Call to a member function getId() on a
    > non-object in
    > /var/www/users/beta4/newscoop/library/Newscoop/Services/IssueService.php on
    > line 104
    >
    > Admin is blank?
    > Front page is OK.
    >
    > Because of problems with 4.3.0, I make fresh install of 4.3.1 from Github,
    > restore backup from 4.2.4 without errors,
    > place fixed legacy plugins to newscoop/plugins/
    > and as you suggested
    >
    > php composer.phar install
  • Which version then You suggest for the production site?
    Robert
    Post edited by RobertB at 2015-01-15 13:47:29
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    upcoming 4.3.2
  • Ok, when?
    Thanks
    Robert
  • I upgrade from 4.2.4 to 4.3.2.
    I done http://www.example.com/upgrade.php
    The page answeres :

    curl -s https://getcomposer.org/installer | php
    php composer.phar install

    I peformed these commands.

    And again:
    curl -s https://getcomposer.org/installer | php
    php composer.phar install

    Is there ideas to decide?


    Post edited by Andrei S. at 2015-02-25 09:06:58
  • del
    Post edited by Andrei S. at 2015-03-01 17:15:24