Ticket #474 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Images don't display on the 2010 archive

Reported by: chris Owned by: chris
Priority: minor Milestone:
Component: Dev server Keywords:
Cc: ed Estimated Number of Hours: 2.0
Add Hours to Ticket: 0 Billable?: yes
Total Hours: 0.6

Description (last modified by chris) (diff)

Images are not working on the 2010 archive:

http://2010.archive.transitionnetwork.org/index.php

But they are working here:

http://2011.archive.transitionnetwork.org/index.php

Change History

comment:1 in reply to: ↑ description Changed 4 years ago by chris

  • Add Hours to Ticket changed from 0.0 to 0.6
  • Status changed from new to closed
  • Resolution set to fixed
  • Description modified (diff)
  • Total Hours changed from 0.0 to 0.6

Replying to chris:

But they are working here:

http://2011.archive.transitionnetwork.org/index.php

The 2011 archive had started doing the same thing so I have spent some time solving this, for the 2011 archives I re-enabled uploads and set it so that existing files can't be overwritten in lots of config.php files:

$EnableUpload = 1;
$EnableUploadOverwrite = 0;

New files can't actually be uploaded as all the files and directories are owned by root and the web server doesn't have permission write any files.

This didn't solve the problem with the 2010 archive, but editing paths in config files, as the location of the files changed when moved from the last web server, solved the problem, these regural expressions were used for this in vim:

:1,$s;/home/tt/public_html;/web/2010.archive.transitionnetwork.org/www;gc
:1,$s;/web/transitiontowns.org.webarch.net/www;/web/2010.archive.transitionnetwork.org/www;gc
:1,$s;http://transitiontowns.org/pub;http://2010.archive.transitionnetwork.org/pub;gc  

Now the archive have images again :-)

Also the archives do get traffic still -- the 2011 archive had 13 visits yesterday according to the piwik stats.

Note: See TracTickets for help on using tickets.