Forum

Thread tagged as: Question, Problem

PDF Files and Images do not appear on Assets page

We cannot see the pdf files and images on the Assets page that we can see are on the server. Is there any way please that we can make them appear again?

Diagnostic Report

Perch: 2.8.8, PHP: 5.4.45, MySQL: 5.0.91, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.8), assets (2.8.8), categories (2.8.8), perch_events (1.9.2), perch_blog (4.6)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_events', );
PERCH_LOGINPATH: /cms
PERCH_PATH: /home/linweb06/k/keyhavenyachtclub.co.uk-1039457816/user/htdocs/cms
PERCH_CORE: /home/linweb06/k/keyhavenyachtclub.co.uk-1039457816/user/htdocs/cms/core
PERCH_RESFILEPATH: /home/linweb06/k/keyhavenyachtclub.co.uk-1039457816/user/htdocs/cms/resources
Image manipulation: GD
PHP limits: Max upload 20M, Max POST 20M, Memory: 64M, Total max file upload: 20M
Resource folder writeable: Yes
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
REQUEST_URI: /cms/core/settings/diagnostics/
DOCUMENT_ROOT: /home/linweb06/k/keyhavenyachtclub.co.uk-1039457816/user/htdocs
HTTP_HOST: www.keyhavenyachtclub.co.uk
Page Code

<!DOCTYPE html>
<html lang="en-gb">
<head>
    <meta charset="utf-8" />
    <title>Manage Assets</title>
<meta name="viewport" content="width=device-width" />   <!--[if lt IE 9]><link rel="stylesheet" href="/cms/core/assets/css/iebase.css?v=2.8.8" type="text/css" /><![endif]-->

    <link rel="stylesheet" href="/cms/core/assets/css/perch.css?v=2.8.8" type="text/css" />
    <link rel="stylesheet" href="/cms/core/assets/css/720.css?v=2.8.8" type="text/css" media="only screen and (min-width: 720px)" />

        <!--[if lt IE 9]><link rel="stylesheet" href="/cms/core/assets/css/720.css?v=2.8.8" type="text/css" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="/cms/core/assets/css/ie7.css?v=2.8.8" type="text/css" /><![endif]-->
    <!--[if IE 6]><link rel="stylesheet" href="/cms/core/assets/css/ie6.css?v=2.8.8" type="text/css" /><![endif]--> 
  <style type="text/css">.topbar{background-color: #ffffff; }</style>
<script src="/cms/core/assets/js/head.min.js?v=2.8.8"></script></head>
<body class="sidebar-open ">
<div class="sidebar">
    <ul class="metanav">
                <li>
            <a href="/cms/core/settings/" class="icon settings"><span>Settings</span></a>
        </li>
                <li><a href="/cms/core/account/" class="icon account"><span>My Account</span></a></li>
        <li><a href="/cms/core/help/" class="icon help"><span>Help</span></a></li>      <li><a href="/cms/?logout=1" class="icon logout"><span>Log out</span></a></li>
    </ul>

    <a id="logo" href="/cms"><img src="/cms/resources/1290102084_KYC_Burgee_CMS.jpg"  class="logo" alt="Logo" /></a>    <div class="helptext">
        <h2 class="icon help">
            <a href="/cms/core/help/">Help &amp; Support</a>        </h2><p>This page lists assets in use within the site. Use the smart bar to filter or search, and click on an asset to edit.</p>
    </div>
</div>
<div class="main"><div class="topbar light">
    <ul class="dashnav">
                <li><a href="/" class="icon site assist"><span>My Site</span></a></li>
    </ul>
    <ul class="mainnav"><li><a href="/cms/core/apps/content/">Pages</a></li><li class="selected"><a href="/cms/core/apps/assets/">Assets</a></li><li id="appmenu" class="apps"><script type="text/javascript">document.getElementById('appmenu').parentNode.style.display='none';</script><ul class="appmenu"><li><a href="/cms/core/apps/categories">Categories</a></li><li><a href="/cms/addons/apps/perch_events/edit/" class="add">+</a><a href="/cms/addons/apps/perch_events">Events</a></li><li><a href="/cms/addons/apps/perch_blog/edit/" class="add">+</a><a href="/cms/addons/apps/perch_blog">News</a></li></ul></li><li><a href="/cms/core/users/">Users</a></li></ul></div>
<div class="body">
    <div class="inner"><ul class="subnav"><li class="selected"><a href="/cms/core/apps/assets/">Add/Edit</a></li><li><a href="/cms/core/apps/assets/tags/">Tags</a></li></ul>
        <a class="add button" id="staticdrop" href="/cms/core/apps/assets/edit/">Add asset</a>

    <h1>Listing all assets</h1>



        <ul class="smartbar">
        <li><a href="?view=list" class="set asset-view-mode grid">View</a></li>
        <li class="filter"><ul><li><a class="icon asset-icon asset-type" href="?show-filter=type">By Asset Type</a></li><li><a href="/cms/core/apps/assets/?type=img">Images</a></li><li><a href="/cms/core/apps/assets/?type=doc">Documents</a></li><li><a href="/cms/core/apps/assets/?type=sheet">Spreadsheets</a></li><li><a href="/cms/core/apps/assets/?type=audio">Audio</a></li><li><a href="/cms/core/apps/assets/?type=video">Video</a></li><li><a href="/cms/core/apps/assets/?type=pres">Presentations</a></li><li><a href="/cms/core/apps/assets/?type=jpg">JPG</a></li><li><a href="/cms/core/apps/assets/?type=pdf">PDF</a></li></ul></li><li class="filter"><ul><li><a class="icon asset" href="?show-filter=bucket">By Bucket</a></li><li><a href="/cms/core/apps/assets/?bucket=default">Default</a></li></ul></li>        <li class="fin">
            <form method="get" action="?" class="search">
                <input name="q" type="text" placeholder="Search" type="required" class="search" value="" />
                <button type="submit"><img src="/cms/core/assets/img/search.svg" /></button>
                            </form>
        </li>
    </ul>
        <a href="/cms/core/apps/assets/edit/?id=7"><div class="grid-asset asset-doc asset-icon"><div class="asset-meta"><span class="title">Christmas Dinner poster revised</span></div></div></a><a href="/cms/core/apps/assets/edit/?id=5"><div class="grid-asset asset-image"><img src="/cms/resources/easter-monday-1-thumb@2x.jpg" alt="Easter Monday" class="thumb portrait" /><div class="asset-meta"><span class="title">Easter Monday</span></div></div></a><a href="/cms/core/apps/assets/edit/?id=3"><div class="grid-asset asset-image"><img src="/cms/resources/green-advert-thumb@2x.jpg" alt="Green Advert" class="thumb portrait" /><div class="asset-meta"><span class="title">Green Advert</span></div></div></a><a href="/cms/core/apps/assets/edit/?id=1"><div class="grid-asset asset-image"><img src="/cms/resources/wednesday-thumb@2x.jpg" alt="Wednesday" class="thumb portrait" /><div class="asset-meta"><span class="title">Wednesday</span></div></div></a><div class="paging-cont"></div>
    </div> 
</div>
    <div class="footer">        

        <div class="version">
                    </div>
                <div class="credit">
            &nbsp;      </div>
    </div>
</div>
<script src="/cms/core/assets/js/jquery-1.11.2.min.js"></script>
<script src="/cms/core/assets/js/jquery-ui.js?v=2.8.8"></script>
<script src="/cms/core/assets/js/perch.min.js?v=2.8.8"></script>
<script>
    Perch.token = 'd5c8f626861cc37e0e43e3dbb9c6f9c5';
    Perch.path = '/cms';
    Perch.version = '2.8.8';
    </script>
<!-- Custom CSS/JavaScript --></body>
</html>
Laurence Prestage

Laurence Prestage 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

The first thing to do is to update Perch as you are a good few versions behind, let us know if you are still seeing the issue once you have updated.

I have upgraded the Perch version, and although it does not say it in Diagnostics yet, I have also upgraded to PHP 5.6 on the host server.

Still no change, no images or pdfs showing in Assets other than those we have loaded up to try to get it all working.

Perch: 2.8.14, PHP: 5.4.45, MySQL: 5.0.91, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.14), assets (2.8.14), categories (2.8.14), perch_events (1.9.2), perch_blog (4.6)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_events', );
PERCH_LOGINPATH: /cms
PERCH_PATH: /home/linweb06/k/keyhavenyachtclub.co.uk-1039457816/user/htdocs/cms
PERCH_CORE: /home/linweb06/k/keyhavenyachtclub.co.uk-1039457816/user/htdocs/cms/core
PERCH_RESFILEPATH: /home/linweb06/k/keyhavenyachtclub.co.uk-1039457816/user/htdocs/cms/resources
Image manipulation: GD
PHP limits: Max upload 20M, Max POST 20M, Memory: 64M, Total max file upload: 20M
Resource folder writeable: Yes
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
REQUEST_URI: /cms/core/settings/diagnostics/
DOCUMENT_ROOT: /home/linweb06/k/keyhavenyachtclub.co.uk-1039457816/user/htdocs
HTTP_HOST: www.keyhavenyachtclub.co.uk
Drew McLellan

Drew McLellan 2638 points
Perch Support

How were the PDFs uploaded? Perch doesn't import from files on the server - they have to be uploaded through Perch.

In V1 images and pdfs were uploaded in the normal way in Perch. When we upgraded to V2, the then webmaster at the time seemed to have problems with the Assets page but didn't tell me. He uploaded some in FTP and then copied in the url.

But none of the images and pdfs that had been uploaded in V1 were showing on the Assets page in V2 - is that the way it should be? To use the same images and pdfs again, do they all have to be uploaded again to the Assets page?

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's the way it should be. Assets didn't exist in Perch 1.

If you upload a PDF now, is it listed?

Yes the files we load up in Assets show there now. I guess we were thinking that the images and pdfs that were already on the server from Perch 1 would show there as well.

So we will have to reload all the pdfs and images again if we want to use them elsewhere on the website in the future.

If we do that, that will duplicate all the images and pdfs already on the server, will it not?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, that's correct.