Unable to get 3.5.3 running
  • I've installed Newscoop 3.5.3, which went fine.

    During the setup process, I selected the 'journal' as a test publication to be setup with the install, however, I now can't get this publication to show in the frontend.

    At first, I was told the publication needed an error page to be defined as well as templates for frontpage, sections and articles.
    No templates had actually come with the install, so I got two of the existing templates (the journal and the journalist) and uploaded the extracted files to the /templates folder.

    Then, I selected templates from these folders for the three issues which were created for the 'journal' publication which came with the install.

    The result is an unhelpful error message that is literally empty:

    http://beeldenstad.net/newscoop/

    I managed to get an issue to show in preview mode (without any parse errors), but without any of the images showing. I also seem to fail to upload new images (though the appropriate folder is writable).

    Now, I'm at a loss as to what to do. Any ideas would be very welcome.
  • 18 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    something wrong with virtual host settings. I recommend you install newscoop in the site root folder instead of subfolder.
  • Installing in the root resulted in the following:

    + Directly after the clean install, the site (not the backend) opens with "Error: The site alias 'beeldenstad.net' was not assigned to a publication. Please create a publication and assign it the current site alias."

    + After setting up the right alias, the site opens with "Error: Unable to select a template! Please make sure the following conditions are met:
    there is at least one issue published and it had assigned valid templates for the front, section and article pages;
    a template was assigned for the URL error handling in the publication configuration screen."
    This is because no templates, except system templates, are part of the 3.5.3 install. This is rather confusing, as one of the sample sites is supposedly selectable during the install process.

    + Downloading the 'journal' templates and setting the error template and templates for front, section and article does allow the preview to sort of work, but with three parsing errors: "[in set_thejournal/_tpl/top-search-box.tpl line 4]: syntax error: invalid attribute name: '=' (Smarty_Compiler.class.php, line 1550)

    [in set_thejournal/_tpl/top-search-box.tpl line 4]: syntax error: invalid attribute name: '\' (Smarty_Compiler.class.php, line 1550)

    [in set_thejournal/_tpl/top-search-box.tpl line 4]: syntax error: invalid attribute name: 's\' (Smarty_Compiler.class.php, line 1550)"

    + Also, in the preview, none of the images are displayed.

    + Setting front, section and article templates for all issues does result in the frontend returning an actual website (though also without images displayed).

    + Trying to attach a new image to an article isn't possible as the form to attach new images doesn't have a 'submit' or 'upload' button, only a 'cancel' button. The 'cancel' button doesn't work, only the 'x' button in the top right works.

    + Uploading images through the media archive works, but clicking 'save all' results in an error:

    Error Report
    Error ID: 2:Campsite:3.5.3:Image.php:1106
    Error String: filesize() [function.filesize]: stat failed for /var/www/vhosts/beeldenstad.net/httpdocs/images/p162ef2hi92c o1i2n1ps71vvg1k681.tmp
    Time: Fri, 17 Jun 2011 11:32:46 +0200
    Backtrace:

    camp_report_bug() called at [Grin
    filesize() called at [/var/www/vhosts/beeldenstad.net/httpdocs/classes/Image.php: 1106]
    Image::ProcessFile() called at [/var/www/vhosts/beeldenstad.net/httpdocs/admin-files/media- archive/do_upload.php:53]
    require_once() called at [/var/www/vhosts/beeldenstad.net/httpdocs/admin.php:192]




    So, installing in the root works pretty much as well as installing in a subfolder. The end result being that, so far, newscoop isn't usable for me.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    there is a problem with image processing
    http://beeldenstad.net/get_img?ImageRatio=25&ImageId=16
    and compare the same image on demo site:
    http://newscoop-demo.sourcefabric.org/get_img?ImageRatio=25& amp;ImageId=16

    please create the file test.php in root folder with content
    <?php phpinfo(); ?>

  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    good, thanks. Could you add in .htaccess file: php_flag display_errors 1

    It allows to see the errors during script executing.
  • Done. Presuming this was the .htaccess in the root.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    no errors. Please add also php_value error_reporting 2147483647
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    ok, still no errors. You can remove last string in .htaccess
    Could you check images folder. There are should be jpg files (e.g. http://newscoop-demo.sourcefabric.org/images/cms-image-00000 0050.jpg )
    I can see that this file is inaccessible or missed. http://beeldenstad.net/images/cms-image-000000050.jpg
    Please check the permissions for apache server on image folder & files.
  • The /images folder is set to 777, /images/image_cache is empty, /images/thumbnails has one file called 'placeholder'. The latter two folders were set to 755, I set them to 777.

    This still did not result in me being able to upload images directly with articles or by uploading them to the media archives.

    Also, I now get the webserver's placeholder page when visiting the site root:

    http://beeldenstad.net/

    But changing the publication's alias to www.beeldenstad.net, 'the journal' reappears here:

    http://www.beeldenstad.net/

    I find this all very confusing.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Quote:
    The /images folder is set to 777, /images/image_cache is empty, /images/thumbnails has one file called 'placeholder'. The latter two folders were set to 755, I set them to 777.

    ok, but is there the jpg image files? Please consult with hoster support why standard image file is not accessible directly. As I mentioned above: http://beeldenstad.net/images/cms-image-000000050.jpg
  • Ehm, there are no image files whatsoever under /images. There is only a file called 'placeholder' under /images/thumbnails

    Note that the zip as downloaded from your website also doesn't have any images under /images.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    just downloaded Journal tar.gz file from sourceforge and there are image files:
    index.php/fa/152/0/
  • Indeed. I now notice that. This is not clear at all from your website. I would not expect images and files (content) to be part of a download of smarty templates (markup). On top of that, I would not expect to have to download a template pack to display 'the journal', the example site I selected when installing newscoop.

    Anyway, this does not resolve my issue of uploading new images.
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    the problem is file manipulation:
    - on installation the image files didn't copied (from install/sample_data/images)
    - you can not upload image file (btw, could you upload any other file like pdf)
    the possible cause is some file related functions are disabled by hoster due security reason
  • The newscoop 3.5.3 zip doesn't have any images inside /images, so, no, no images were copied during the install.

    Indeed, file uploads do not work either. Or rather, the file upload appears to work by clicking 'save all' generates the error I posted earlier.

    It's possible something is up with the hoster, but I've used the same domain for testing other CMSs which uploaded files and images (and resized them) without a hitch.

    Here's the upload error again:

    Error Report
    Error ID: 2:Campsite:3.5.3:Attachment.php:445
    Error String: filesize() [function.filesize]: Unable to access /var/www/vhosts/beeldenstad.net/httpdocs/files/0000/0000/000 000000/p162fkuk211m8l1okh1cl78fe1vom1.tmp
    Time: Fri, 17 Jun 2011 22:33:59 +0200
    Backtrace:

    camp_report_bug() called at [Grin
    filesize() called at [/var/www/vhosts/beeldenstad.net/httpdocs/classes/Attachment .php:445]
    Attachment::ProcessFile() called at [/var/www/vhosts/beeldenstad.net/httpdocs/admin-files/media- archive/do_upload_file.php:32]
    require_once() called at [/var/www/vhosts/beeldenstad.net/httpdocs/admin.php:192]
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    Quote:
    Error String: filesize() [function.filesize]: Unable to access /var/www/vhosts/beeldenstad.net/httpdocs/files/0000/0000/000 000000/p162fkuk211m8l1okh1cl78fe1vom1.tmp

    It means this file is not accessible
    Quote:
    The newscoop 3.5.3 zip doesn't have any images inside /images, so, no, no images were copied during the install.


    I said about install/sample_data/images:

    index.php/fa/153/0/
  • I gave /files 777 permissions as well, which didn't make a difference.

    Also, I downloaded and checked the newscoop 3.5.3 zip download again, and again there appear to be no files in /images/.