Thread tagged as: Problem

Perch content type="file" not showing on website

Hello there, i got a problem with a file link. For some reason it doesnt show anything on the website. Even with the sample code from the docs <a href="<perch:content id="report" type="file" label="Annual report PDF" output="size">">Download my file</a> it doesnt work. After checking my Database i can see that all values are created as usual.

Is there anything obvious i am missing?

Thanks in advance!


Perch: 3.0.11, PHP: 7.0.18-0ubuntu0.16.04.1, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
Server OS: Linux, apache2handler
Installed apps: content (3.0.11), assets (3.0.11), categories (3.0.11), perch_forms (1.10)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms' );
PERCH_PATH: /var/www/public/perch
PERCH_CORE: /var/www/public/perch/core
PERCH_RESFILEPATH: /var/www/public/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 2M, Max POST 8M, Memory: 128M, Total max file upload: 2M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
DOCUMENT_ROOT: /var/www/public
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Bastian Silbereis

Bastian Silbereis 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You're using template syntax for the current version of Perch, but you're running an old version of the software.

Wow, didn't expect this little version difference to break it Thanks Drew, you helped me out. :)

Drew McLellan

Drew McLellan 2638 points
Perch Support

It doesn't if you're using the old syntax. Old syntax still works, but you can't go back in time and use new syntax with an old version of the software.