Contribute is re-writing the paths to my files!

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default Contribute is re-writing the paths to my files!

    I'm training a client to update their site using Contribute and keep getting
    error messages caused by the software re-writing the path to certain files in
    the code.

    Bascially I have all my navigation in an include file which is pulled into
    every page of the site using:
    <?php require('includes/navigation.php'); ?>

    When we are using Contribute and edit the page content - when we click on
    Publish to make our changes live we get the following error:

    Warning: require(../includes/navigation.php) [function.require]: failed to
    open stream: No such file or directory in
    /home/bar10000/public_html/barone_music.php on line 33

    Warning: require(../includes/navigation.php) [function.require]: failed to
    open stream: No such file or directory in
    /home/bar10000/public_html/barone_music.php on line 33

    Fatal error: require() [function.require]: Failed opening required
    '../includes/navigation.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')
    in /home/bar10000/public_html/barone_music.php on line 33

    when I look at the source code the links now have "../" in front of them.

    WHY IS IT DOING THIS???

    I am using Studio 8 and the site has been built in Dreamweaver - I created
    dreamweaver templates from the pages I created so that I could lock down areas
    of the site and have editable regions that the client could using to update the
    content. Any help is appreciated.

    eskymo Guest

  2. Similar Questions and Discussions

    1. Contribute rewriting paths, adding lots of ../
      A couple of my users seem to have found a new bug. For no apparent reason, when adding a link to a document on the page, instead of adding the...
    2. Why does contribute re-write link paths?
      Most of the links in my Dreamweaver site are root-relative. Contribute is re-writing these into document-relative links. Many links are in the nav...
    3. Contribute 3 rewrites PHP include relative paths!
      I'm having the same problem, essentially. The DWT file has a path to an include, and in Dreamweaver when you create a new file from the Template, it...
    4. How can you specify full paths for images in Contribute?
      On the "Image Properties" dialog, the "Image file" field does not seem to accept a full path (http://www.etc...). Contribute seems to only allow...
    5. How can I set absolute paths for images in Contribute 2?
      How can I set absolute paths for images in Contribute 2?
  3. #2

    Default Re: Contribute is re-writing the paths to my files!

    I had the several problems with include menu's and hyperlinks, specially when I
    made them 'updatable' by users through Contribute (3, 4 and CS3). I never found
    settings concerning the way Contribute handles hyperlinks. If you want to use
    this practical include solution that users can update through Contribute, you
    probably best place the include file in the same folder as the page(s) it gets
    included into. I always use the php function include instead of require.

    ThinkInk Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139