Forum

Thread tagged as: Problem, Error

Upload files not appearing

Hi,

I'm trying to upload a file from one of my regions, when i go to 'select or upload a file' the 'select an asset' area slides over and when i try to 'add asset' the file appears to upload but then nothing happens.

I've also checked the resources folder on my FTP and nothing is there.

Any help would be greatly appreciated.

Cameron Duthie

Cameron Duthie 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What sort of file is it? Can you see it in the Assets app?

Thank you for the quick response!

It's just a pdf - it doesn't appear in the asses app either.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What's your configured upload limit, and how big is the file?

It's 393kb - there's no set limit to how much i can upload on the server.

I have just transferred the site from a different server today, could that have caused the issue?

Drew McLellan

Drew McLellan 2638 points
Perch Support

There's always a limit, but by default it's 2MB I think. It should be in the diagnostics report.

That's the only file i've got uploaded to the site so i should have any space issues.

Not really sure what to make of this?


Diagnostics report PERCH INFORMATION Perch: 2.6.6 Production mode: Production (100) Installed apps: content (2.6.6), assets (2.6.6), categories (2.6.6) DB driver: PDO DB tables: perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users Users: 1 App runtimes: <?php $apps_list = array( 'content', 'categories', ); Editor plug-ins: markitup H1: 76cae7620c5e7cb8300b3a7a54297cb7 L1: 85eb48ab9e9e72cce762533dc53f411b headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 0 content_collapseList: 1 lang: en-gb update_2.6.6: done latest_version: 2.5.3 on_sale_version: 2.6.6 PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: brian_ PERCH_DB_SERVER: localhost PERCH_DB_DATABASE: perchBrian_ PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: cameron@madewithfabric.com PERCH_EMAIL_FROM_NAME: Cameron Duthie PERCH_LOGINPATH: /perch PERCH_PATH: /var/www/vhosts/miller-business.com/httpdocs/perch PERCH_CORE: /var/www/vhosts/miller-business.com/httpdocs/perch/core PERCH_RESFILEPATH: /var/www/vhosts/miller-business.com/httpdocs/perch/resources PERCH_RESPATH: /perch/resources PERCH_HTML5: 1 PERCH_RUNWAY: PERCH_ERROR_MODE: DIE PERCH_DATE_LONG: %d %B %Y PERCH_DATE_SHORT: %d %b %Y PERCH_TIME_SHORT: %H:%M PERCH_TIME_LONG: %H:%M:%S PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /var/www/vhosts/miller-business.com/httpdocs/perch/templates PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_PRODUCTION_MODE: 100 PERCH_RWD: PERCH_HTML_ENTITIES: PERCH_SSL: PERCH_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: HOSTING SETTINGS PHP: 5.3.5 Zend: 2.3.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: 5.1.54 MySQL server: 5.1.54 Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, sockets, exif, tokenizer, xml, cgi-fcgi, curl, dom, fileinfo, gd, imap, json, ldap, mbstring, mcrypt, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, snmp, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader GD: Yes ImageMagick: No PHP max upload size: 128M PHP max form post size: 8M PHP memory limit: 128M Total max uploadable file size: 8M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: No PATH: /sbin:/usr/sbin:/bin:/usr/bin PP_CUSTOM_PHP_INI: /var/www/vhosts/miller-business.com/etc/php.ini FCGI_ROLE: RESPONDER HTTP_HOST: miller-business.com HTTP_X_REAL_IP: 90.212.20.227 HTTP_X_FORWARDED_FOR: 90.212.20.227 HTTP_X_ACCEL_INTERNAL: /internal-nginx-static-location HTTP_CONNECTION: close HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.7 Safari/537.36 HTTP_REFERER: https://miller-business.com/perch/core/settings/diagnostics/ HTTP_ACCEPT_ENCODING: gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 HTTP_COOKIE: cpsession=millerbu%3aVQuz80kJID9bNLm8A2WxVPjuqcMb_DZYv0Aroz_La4OYKNTtF5NkR0RvlLKaf4Ey%2c10844ab545d2091e4465f12a2ca375efbf8f9ab11c1c65420f55772b635c29f4; langedit=; lang=; cprelogin=no; whostmgrrelogin=no; whostmgrsession=%3aNhpCNjS6FTS9bNJfc0Lpl_aJXUIjTQRnPHLG8DdKn3MYPs1qZ0rsSe_vfoaglq4o%2cbe64d1414dd20045f42cdd137eb25e9f61115731ed9cf25c3a0e8ad51e985cf2; cmsa=1; PHPSESSID=14ft6r9oi541ij3em7m5jkr1o5; cmssb=0 SERVER_SIGNATURE: <address>Apache Server at miller-business.com Port 80</address> SERVER_SOFTWARE: Apache SERVER_NAME: miller-business.com SERVER_ADDR: 216.70.111.124 SERVER_PORT: 80 REMOTE_ADDR: 90.212.20.227 DOCUMENT_ROOT: /var/www/vhosts/miller-business.com/httpdocs SERVER_ADMIN: brian@miller-business.com SCRIPT_FILENAME: /var/www/vhosts/miller-business.com/httpdocs/perch/core/settings/diagnostics/index.php REMOTE_PORT: 56838 GATEWAY_INTERFACE: CGI/1.1 SERVER_PROTOCOL: HTTP/1.0 REQUEST_METHOD: GET QUERY_STRING: extended REQUEST_URI: /perch/core/settings/diagnostics/?extended SCRIPT_NAME: /perch/core/settings/diagnostics/index.php PHP_SELF: /perch/core/settings/diagnostics/index.php REQUEST_TIME: 1413318234

Just did a test on the old site (on a different server) the upload function works fine there but doesn't work on the new site.

Could some of the core files not been copied over properly? Or could this be a database issue?

Drew McLellan

Drew McLellan 2638 points
Perch Support

That doesn't sound likely, but if works on your other server that suggests it's specific to the environment.

Do you have any suggestions or tests that i could do from here to figure out what it is?

The new environment is on the same servers as the old one and i went through the same set up as i did the first time - so I'm a little confused on where to go from here.

Many thanks,

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is there anything in your server's PHP error log?

Not really sure what the issue was but i managed to fix it.

I created another new database on the new servers and re-imported the database from the old site then changed the config file to the new login details and everything seemed to work fine.

The only bummer was that i had to fill out all the perch regions within the cms again, but luckily there wasn't too many pages.