Renaming a site after images are uploaded

Author Message

Baard Johansen

Wednesday 15 June 2005 3:16:47 am

I started creating a site with the "plain" template, and therefore have images stored under /var/plain.

I now need to rename my var-folder from /var/plain to something else. As I understand, the name of this folder is stored in the database for all the uploaded images.

I have searched the forum for a tips on how to replace this name in the database with no luck. Does anyone know how to rename this folder after images are uploaded?

I'm using ezPublish 3.6.0.

--
Baard H. Johansen

Vjeran Vlahovic

Wednesday 15 June 2005 3:33:53 pm

You could make sql dump of your MySQL database, then open it in Your favorite editor and use find/replace to change old path with the new one. After that restore the database with the new .sql file. Don't forget to change VarDir option in site.ini.append.php .

http://www.netgen.hr/eng

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 05:33:54
Script start
Timing: Jan 31 2025 05:33:54
Module start 'layout'
Timing: Jan 31 2025 05:33:54
Module start 'content'
Timing: Jan 31 2025 05:33:56
Module end 'content'
Timing: Jan 31 2025 05:33:56
Script end

Main resources:

Total runtime1.2829 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0037 588.3672151.2266
Module start 'layout' 0.00370.0028 739.593836.6797
Module start 'content' 0.00651.2756 776.2734918.3984
Module end 'content' 1.28200.0008 1,694.67197.8125
Script end 1.2828  1,702.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2256160.0002
Check MTime0.00120.0936160.0001
Mysql Total
Database connection0.00060.043310.0006
Mysqli_queries1.237196.4365540.0229
Looping result0.00050.0396520.0000
Template Total1.247197.220.6235
Template load0.00210.166520.0011
Template processing1.244997.044820.6225
Template load and register function0.00120.094610.0012
states
state_id_array0.00230.180410.0023
state_identifier_array0.00390.300720.0019
Override
Cache load0.00180.1401130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.043420.0003
Fetch class attribute name0.00180.139730.0006
XML
Image XML parsing0.00210.163320.0010
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00430.3328170.0003
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs