Dreamweaver 8 template update pages problem

Does anyone have any ideas on this?
I just upgraded to Dreamweaver 8 and am getting very
frustrated with it so far. When I change a template and allow it to
update the pages using that template, it automatically inserts the
following code on each page which shows up then as TEXT on the page
and I have to go and manually delete it on every page using the
template.
<!-- function MM_swapImgRestore() { //v3.0 var
i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a
)&&x.oSrc;i++) x.src=x.oSrc; } function
MM_preloadImages() { //v3.0 var d=document; if(d.images){
if(!d.MM_p) d.MM_p=new Array(); var
i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new
Image; d.MM_p[j++].src=a
;}} } function MM_swapImage() { //v3.0 var
i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3) if
((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];} } function
MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0; } //-->

Can we see the rest of the page?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"DeTuinman1970" <[email protected]> wrote in
message
news:[email protected]...
> Here is my template html. That code is in the template
and the pages are
> all
> fine. However, when I change anything on the template
page, and update the
> pages using this template, what I listed in my first
post shows as actual
> text
> on each of my pages (the template itself after updating
looks totally fine
> with
> no code as text, only the updated pages all have the
code as text.
> It won't let me post the entire code of the template, so
I'm just putting
> the
> beginning part on.
> I never had this problem with Dreamweaver 4 so I don't
know why this is
> happening!
>
> <html>
> <head>
> <!-- #BeginEditable "doctitle" -->
> <title>web template</title>
> <!-- #EndEditable -->
> <LINK REL=STYLESHEET TYPE="text/css"
HREF="../style.css">
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
> <script language="JavaScript">
> <!--
> function MM_swapImgRestore() { //v3.0
> var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a
)&&x.oSrc;i++)
> x.src=x.oSrc;
> }
>
> function MM_preloadImages() { //v3.0
> var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new
Array();
> var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
for(i=0;
> i<a.length;
> i++)
> if (a.indexOf("#")!=0){ d.MM_p[j]=new Image;
> d.MM_p[j++].src=a
> }
>
> function MM_swapImage() { //v3.0
> var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new
Array;
> for(i=0;i<(a.length-2);i+=3)
> if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x;
if(!x.oSrc)
> x.oSrc=x.src; x.src=a[i+2];}
> }
>
> function MM_jumpMenu(targ,selObj,restore){ //v3.0
>
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
> if (restore) selObj.selectedIndex=0;
> }
>
> function MM_findObj(n, d) { //v4.01
> var p,i,x; if(!d) d=document;
>
if((p=n.indexOf("?"))>0&&parent.frames.length) {
> d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
> if(!(x=d[n])&&d.all) x=d.all[n]; for
(i=0;!x&&i<d.forms.length;i++)
> x=d.forms
[n];
>
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
> x=MM_findObj(n,d.layers.document);
> if(!x && d.getElementById)
x=d.getElementById(n); return x;
> }
> //-->
> </script>
> </head>
>
>

Similar Messages

  • Dreamweaver CS4 Library Update Pathing Problem

    Hi folks,
    I've been using Dreamweaver since version 3, but I just
    recently encountered a very strange problem which breaks my ability
    to update my site with library items. When the problem occurred, I
    tried creating a new site definition and the update process worked
    until I made a change to the remote host directory for the site.
    Once I made that change, the host directory is now somehow part of
    the library path even though the host directory does not exist in
    my local folder structure.
    For example, the correct path to my library item in my
    templates and pages is:
    "/library/footer.lbi"
    However, if in the Site definition window I add the following
    entry to the Remote Info category:
    Host directory: ABC (or ABC/ as Dreamweaver redefines it)
    I get this error message when trying to update the site's
    pages (even after rebuilding the site cache):
    item E:\My Documents\Web
    Sites\www.abc.com\library\footer.lbiE:\My Documents\Web
    Sites\www.abc.com\library\footer.lbi contains an invalid path.
    When I add the library item to a page (after the Host
    Directory change), then this is the path it creates in the Web page
    to the library item (and thus causes the error message above):
    <!-- #BeginLibraryItem "/ABC/library/footer.lbi" -->
    This site definition worked perfect in previous versions of
    Dreamweaver, so I'm confused as to why this strange glitch is
    happening.
    Links are relative to the document for this site and all of
    my sites (as they always have been). Any ideas?

    Hi Alan,
    I resolved this issue a few months ago.  I'm sorry for the delay in a response--multiple career syndrome and online classes are the culprits.
    I believe the solution was removing an entry that Dreamweaver had automatically entered in the HTTP address field of the Local Info category on the Advanced tab of my site definition.  If my memory serves correctly, Dreamweaver had entered the Host Directory from the Remote Info tab after the HTTP address' domain and somehow this affected library updates.  (I have no Testing Server settings entered, by the way.)
    Here are answers to your numerous questions as a courtesy, albeit much delayed:
    Question: "is this a regular site or an RDS site?"
    Answer: I am not familiar with the RDS acronym.  I will assume that this may be an acronym referring to data in some way, such as the now deprecated Microsoft Remote Data Services technology.  The generic problem posed in my question refers to a static site without any database components.
    Question: "Is the icon next to the topmost folder in the local side of the Files Panel a folder icon, or a network icon? [two tiny computers with a wire between them]"
    Answer: The icon next to the top identifier or container for my site in the Files Panel under Local Files is always a folder in all of my sites.
    Question: "is the Library folder in the root level of the local site folder?"
    Answer: Yes.
    Question(s): "what kind of drive is E? is it a removable or a network drive? Or is it in your computer?"
    Answer: Drive E is an internal hard drive partition in my computer.

  • MSI KT6 Delta and Auto update page problem

    Hi, I have been lookin for the right forum to post this on for awhile heh but I have an MSI KT6 Delta FIS2R which has an auto update feature that uses an icon on ur desktop called MSI Live Update. This utility has been working for quite some time now but all of a sudden i get an error message in quote
    "Microsoft JET Database Engine error '80040e09'
    Cannot update. Database or object is read-only.
    /autobios/VerChk/XSeries.asp, line 105"
    I have been on a few sites including microsofts to try and figure out the problem but i get nothing concrete or at least anything i can understand, so I hope someone out here does and if so please help me! thank u

    okay well I did that but does not seem to be working... also after just reading FAQ i noticed that the live update service is being updated which coul dbe causing the problem as well, but i dont know how accurate the date is on that I mean it is a FAQ. So.. is anyone else with this board having the same problem right now?

  • Dreamweaver Template not updating pages error code 2?

    Hi All
    I wonder if someone can help me - I have a site that i made with Dreamweaver. I then got a new computer (windows 7) and updated my dreamweaver from cs4 to cs5. I have just tried to update my pages and it doesnt seems to be working.
    Not sure what information you need - but I have a root folder and within the root site there is a folder with Templates and the templates have the extension .dwt
    I have read some posts that say recreate the cache which i have tried - this hasnt worked
    I then read another post that says you can update the pages by Modify > templates > Update Pages..
    When i tried this I get the update dialog box, but when i try to update the pages i get the following error message:
    "error accessing file - (name of the dwt file), file not found, error code 2"
    Can i ask the what is the error code 2 - i mean is there any information about the error code which will help me to resolve my templates not being found? as i am bit stuck...
    Would appreciate any help on this and thank you in advance
    Regards
    Lorna

    I would like further help with the issue Guy McMickle identified.
    When I update links to my two template files I receive the above Error Code 2 message four times. There are 22 page files based on these templates.
    The <!-- InstanceBegin template... code does not exist in either of the template files. I does, however, show up in every one of the 21 files that were created from one of the two templates. In these files it shows up in uneditable header code.
    Why does the error code only show up four times? If the instanceBegin code is only generated when a file is created based on a template, how can it be avoided or corrected?

  • Template not updating pages in MAC CS4

    I have Dreamweaver CS4 on a iMAC (latest computer) w/ Lion (recently upgraded).  I had been using Dreamweaver 8 on a PC but moved everything a few months ago. 
    I updated the template.  When I saved it, Dreamweaver was supposed to ask to update all related pages, but it didn't ask that.  When I open a page and apply the template, the change shows up.  But I have too many pages to do that.  I tried going to Modify> Template> Update pages.  I turned the LOG on and it said the pages were updated.  I did a Review at the top level and the pages showed up and I moved them to the server.  I don't know why the changes aren't showing up on the server.  I refreshed the page on the server and the change still didn't show up.
    Trudy

    The next thing to try would be this -
    1. In DW's Site manager, export the site definition (make sure you note where you export it so you can find it again - also make sure you export the FULL site definition).
    2.  With the site still selected in Site manager, REMOVE it.
    3.  Now IMPORT the site definition you just exported.
    That can also fix this troublesome problem.

  • Dreamweaver 8 Templates

    Here is what I am/have done and I can not get the template to
    work:
    I opened a new page in Dreamweaver 8 and put the page
    together including all meta tags and saved it as a template
    (template.dwt) in a templates folder on my local root. From there,
    I opened a new page, applied the template to the page and saved it
    as a html file (say aboutus.html) and I did the same with all the
    necessary pages for the website. (cntact.html, history.html, etc.)
    From there, I went back into the template and I added all the
    links to the buttons and I saved the template. Dreamweaver asked me
    to update all the pages that the template is attached to and I said
    yes. HERE IS THE PROBLEM:
    On all the html pages I created from the template, NONE of
    those links became active and they never updated as they were
    suppose to. I am running Dreamweaver 8.0.2 and my buttons to update
    are all rollovers (if that matters). I did try to manually update
    them through >modify>templates>update pages and that did
    nothing as well.
    Heres the layout of the page for reference:
    I have a header across the top contained inside a table (1
    row, no columns) (which can not be changed)
    I have a second table underneath the header that has 2
    columns and 1 row. The left column is where the buttons are and the
    right column will be where the text goes. I have tried to make the
    whole table an editable region, and I tried to make just the
    buttons on the left column an editable region, and neither seemed
    to work.
    Finally, I have a third table underneath the buttons that
    contains the footer (1 row and no cloumns) (which will not change).
    Can someone help me figure out why I can not use templates in
    this manner? The website I am creating will be MUCH EASIER to
    update if I can get this template to work as it is suppose to.
    Please help me??? - AJ

    > saved it as a template (template.dwt) in a templates
    folder on my
    > local root.
    How did you do this? FILE | Save, or FILE | Save As Template?
    > On all the html pages I created from the template, NONE
    of those links
    > became
    > active and they never updated as they were suppose to.
    Is the navigation element in an editable region of the
    template? If so,
    then this is exactly what should happen. You would (almost)
    never want to
    have navigation elements in a template editable region.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "aj_depue" <[email protected]> wrote in
    message
    news:[email protected]...
    > Here is what I am/have done and I can not get the
    template to work:
    >
    > I opened a new page in Dreamweaver 8 and put the page
    together including
    > all
    > meta tags and saved it as a template (template.dwt) in a
    templates folder
    > on my
    > local root. From there, I opened a new page, applied the
    template to the
    > page
    > and saved it as a html file (say aboutus.html) and I did
    the same with all
    > the
    > necessary pages for the website. (cntact.html,
    history.html, etc.)
    >
    > From there, I went back into the template and I added
    all the links to the
    > buttons and I saved the template. Dreamweaver asked me
    to update all the
    > pages
    > that the template is attached to and I said yes. HERE IS
    THE PROBLEM:
    >
    > On all the html pages I created from the template, NONE
    of those links
    > became
    > active and they never updated as they were suppose to. I
    am running
    > Dreamweaver
    > 8.0.2 and my buttons to update are all rollovers (if
    that matters). I did
    > try
    > to manually update them through
    >modify>templates>update pages and that
    > did
    > nothing as well.
    >
    > Heres the layout of the page for reference:
    > I have a header across the top contained inside a table
    (1 row, no
    > columns)
    > (which can not be changed)
    > I have a second table underneath the header that has 2
    columns and 1 row.
    > The
    > left column is where the buttons are and the right
    column will be where
    > the
    > text goes. I have tried to make the whole table an
    editable region, and I
    > tried
    > to make just the buttons on the left column an editable
    region, and
    > neither
    > seemed to work.
    > Finally, I have a third table underneath the buttons
    that contains the
    > footer
    > (1 row and no cloumns) (which will not change).
    >
    > Can someone help me figure out why I can not use
    templates in this manner?
    > The
    > website I am creating will be MUCH EASIER to update if I
    can get this
    > template
    > to work as it is suppose to. Please help me??? - AJ
    >

  • Is there a known issue with the apple app store update page for th ipad?

    Is anyone else getting the ipad app store update page problems?
    When i go to that page on my ipad i get an error " cannot connect to itunes store " but im allowed to still browse the store. Just cant update my items through he update page..... I do have full bars on my wifi :)

    I'm not sure that either of these will work, but you can give them a try.
    Sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to update again.
    You can try resetting all settings. Settings>General>Reset>Reset All Settings. You will have to enter all of your app preferences and device settings again.
    Here is the Apple help article for more advanced iTunes Store troubleshooting steps. You might want to look at this.
    http://support.apple.com/kb/TS3297
    I don't think that this will be the issue - but it can't hurt to look and make sure.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first.

  • Dreamweaver CS6 Templates not updating pages since i copied the website to a new computer

    Dreamweaver CS6 Templates not updating pages since i copied the website to a new computer
    First i install CS6 on the new computer
    copy the projects
    import the websites
    Now, when i change any template the pages do not update any more. New pages working correct. Also manuell updating works.
    Any Idea?
    Where are the info about the join template and the pages. Seems on the old computer - but where?
    Thx

    hm?
    now I made a new page from the template on the new machine - and find one difference:
    New Page:
    <!doctype html>
    <html lang="de"><!-- InstanceBegin template="Templates/mainvorlage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>....
    Old Page:
    <!doctype html>
    <html lang="de"><!-- InstanceBegin template="/Templates/mainvorlage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>...
    The slash / after template=" is not there on the new machine. If i remove the slash on the copied pages and restart dreamweaver then it works. A lot of work, but i can solve my problem this way.
    Maybe there is some checkbox for path handling...?

  • Dreamweaver CS6-updating template doesn't update pages, update screen hangs

    I'm working with a dwt file provided with shopping cart software which I purchased from a third party developer. I've made changes on the main.dwt provided to personalize it for my business. To begin with, everything seemed to be going smoothly, but then at some point, updating the template stopped updating the pages dependent on it, unless the pages are actually open in Dreamweaver. Even when the pages are open, however, the "Update files dependent on" box seems to hang. If I click "close" it asks if I want to stop updating the site. It's very cumbersome to have to open every page in the site in order to get the changes in the template to propagate to the pages. I'm running CS6 on Windows 7 Home Premium. My site is not yet published, so I can't provide a link to it. It's still on the drawing board.

    Is the .dwt template file still within the Dreamweaver generated Templates folder in your site root?
    index.html <--your site's home page
    Templates <-- the Templates folder on same level as site home page
         yourtemplate.dwt <-- your .dwt file
    If it's not, that can cause all kinds of problems in DW.

  • Dreamweaver CS6: Template not updating pages

    I have developed a small promotional site using Dreamweaver CS6. Virtually all pages have been designed around a single template, and this has worked well throughout development.
    However, I'm now noticing that updates applied to the template (updates to an uneditable region) are being passed to only a few of the pages.
    Here is a page not being updated by the template:     http://www.purepowerengine.com/about.htm
    Thank you in advance.

    Hi rdwright,
    Thanks for sharing the answer with us. Good to know that you are all set.
    Thanks,
    Preran

  • Dreamweaver template update ftp files without synchronizing

    Today I change Template - Update all files based on the template - synchronize entire site.
    What I Like to do: change Template - Update all files based on the template
    and then in the same window button with ftp upload changed files!
    Why do I want this:
    The synchronization can take time on big sites, I have cms and billing system on my site with many files.
    The synchronization can take time on slow connection.
    When the time betwen two synchronization is to small Dreamweaver select all files (or many) for synchronization. I do not know if this is only my problem (maybe there is different time on my computer and the server?).
    Do we have solution for this today?
    Or can this be something to suggest for next version?
    Thanks for any suggestion

    Not sure if there is anything set up in DW yet, it does give a status window of what files were updated, you could possibly work backwards form that list (still a bit cumbersome). I also believe that if you change the template and upload it to your server, it will prompt you as to whether or not you'd like to "include dependant files", and (in theory) it will also upload the files linked associated with it... but that may need to be tested to see how well it works on a larger site.
    As a possible alternative, you could use "Server Side Includes" - which is a single file which contains a portion of your page (the top navigation, footer area, etc.), and any page that uses this element will automatically update when you upload just that one element. Here is a link which explains it better: http://www.smartwebby.com/web_site_design/server_side_includes.asp and there are several others on the web that offer more detailed explainations - one caveat is that the web server you use would need to be set up to accept SSI... most do, but something you'd need to look into beforehand...
    Hope that helps,
    Jesse

  • Any way to turn off errors when updating pages from the template?

    I'm using Dreamweaver MX. My site is huge. It's an intranet
    spanning dozens of departments. Some of those departments have
    subsites that don't fall under the intranet's control, although
    they are embedded within our site's folder structure. When I make a
    change to the template and update pages, every time I hit one of
    those subsites I get tons of errors, from "template not found" to
    "unmatched body tag". The errors that pop up each have to be
    clicked on before the updating can continue. I get hundreds of
    these.
    Is there any way to make errors not pop up while updating
    pages from the template? Or even to exclude certain folders from
    being checked? (Cloaking doesn't do it.)

    > I'm using Dreamweaver MX. My site is huge.
    Both of these are problems, I'm afraid. Combining that with
    templates is
    really trouble.
    > "unmatched body tag".
    Errors such as this are definitely caused by errors in your
    page itself.
    Can you show me a page where you would get this?
    > Is there any way to make errors not pop up while
    updating pages from the
    > template? Or even to exclude certain folders from being
    checked? (Cloaking
    > doesn't do it.)
    Valid code will not produce these errors. Unfortunately, the
    only way to
    avoid them is to remove any validation hiccups from your
    pages.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "abna" <[email protected]> wrote in message
    news:f14ue2$pk5$[email protected]..
    > I'm using Dreamweaver MX. My site is huge. It's an
    intranet spanning
    > dozens of
    > departments. Some of those departments have subsites
    that don't fall under
    > the
    > intranet's control, although they are embedded within
    our site's folder
    > structure. When I make a change to the template and
    update pages, every
    > time I
    > hit one of those subsites I get tons of errors, from
    "template not found"
    > to
    > "unmatched body tag". The errors that pop up each have
    to be clicked on
    > before
    > the updating can continue. I get hundreds of these.
    >
    > Is there any way to make errors not pop up while
    updating pages from the
    > template? Or even to exclude certain folders from being
    checked? (Cloaking
    > doesn't do it.)
    >

  • Templates not updating pages at all

    I have a similar problem to several other posters. I have one
    template that is attached to about a dozen pages. When I make a
    change to the template, and then save it, not dialog comes up
    asking if I want to update the dependent pages, and the changes are
    not reflected in the page, it just saves the document.
    If I open one of the dependent pages, and do
    Modify>Template>Apply template to page, the changes do show
    up.
    I have other sites on this computer where the Template
    function works correctly, so it is not a bug or problem with my
    Dreamweaver, just this particular template or site. I am using
    Dreamweaver 8.0.2 on a Mac Book Pro (the newer Intel one).
    You can see the template here:
    http://salidarec.com/Templates/Salida-Rec-Main.dwt
    and an example of a dependent page here:
    http://salidarec.com/
    As I look at the code, it seems like it makes sense, I just
    am at a loss for what to do.
    Here is what I have done, all to no avail:
    Recreated the site cache
    Manually deleted the site cache files and then recreated them
    Made some new test pages using New page from Template dialog
    I am aware of the common template pitfalls, and have not done
    any of these things.
    1. Rename the Templates folder
    2. Move the Templates folder to some other folder level in
    the site other
    than root level
    3. Move a template out of the Templates folder.
    4. Make changes to an editable region of the template (which
    will not
    propagate)
    5. Assume that template changes can be uploaded to the server
    without also
    uploading the changed local files
    6. Corrupt the site cache so that the link between template
    and child page
    is broken
    Any suggestions are appreciated.
    mark

    Export the site definition. Remove the site definition.
    Import the site
    definition. Better?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "mark999" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have a similar problem to several other posters. I have
    one template that
    >is
    > attached to about a dozen pages. When I make a change to
    the template, and
    > then
    > save it, not dialog comes up asking if I want to update
    the dependent
    > pages,
    > and the changes are not reflected in the page, it just
    saves the document.
    >
    > If I open one of the dependent pages, and do
    Modify>Template>Apply
    > template to
    > page, the changes do show up.
    >
    > I have other sites on this computer where the Template
    function works
    > correctly, so it is not a bug or problem with my
    Dreamweaver, just this
    > particular template or site. I am using Dreamweaver
    8.0.2 on a Mac Book
    > Pro
    > (the newer Intel one).
    >
    > You can see the template here:
    >
    http://salidarec.com/Templates/Salida-Rec-Main.dwt
    >
    > and an example of a dependent page here:
    >
    http://salidarec.com/
    >
    > As I look at the code, it seems like it makes sense, I
    just am at a loss
    > for
    > what to do.
    >
    > Here is what I have done, all to no avail:
    > Recreated the site cache
    > Manually deleted the site cache files and then recreated
    them
    > Made some new test pages using New page from Template
    dialog
    >
    > I am aware of the common template pitfalls, and have not
    done any of these
    > things.
    > 1. Rename the Templates folder
    > 2. Move the Templates folder to some other folder level
    in the site other
    > than root level
    > 3. Move a template out of the Templates folder.
    > 4. Make changes to an editable region of the template
    (which will not
    > propagate)
    > 5. Assume that template changes can be uploaded to the
    server without also
    > uploading the changed local files
    > 6. Corrupt the site cache so that the link between
    template and child page
    > is broken
    >
    > Any suggestions are appreciated.
    >
    > mark
    >

  • Problem with an update page.

    I have a problem with an update page on my website
    Here's how it work
    values are defualted in from the advert table  - this works fine
    I should then be able to change the fields and click on the update button
    This works fine but ONLY when the O_year field is populated. 
    There doesn't seem to be anything special about the O_year field
    I thought spry text validation would of been causing the issues, but I removed them and have the same problem.
    For some reason the POST_MMupdate value is not being set to 'form4', which it is doing if O_year is set.
    Please can someone have a look at this, code,
    Also, is there a way of 'stepping through' dreamweaver code to debug it?
    Thanks
    Adam
    $colname_Advert = "-1";
    if (isset($_GET['advert_id'])) {
      $colname_Advert = $_GET['advert_id'];
    mysql_select_db($database_guitarswap_db, $guitarswap_db);
    $query_Advert = sprintf("SELECT * FROM advert WHERE advert_id = %s", GetSQLValueString($colname_Advert, "int"));
    $Advert = mysql_query($query_Advert, $guitarswap_db) or die(mysql_error());
    $row_Advert = mysql_fetch_assoc($Advert);
    $totalRows_Advert = mysql_num_rows($Advert);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form4"))
        //Сheck that we have a file
    if((!empty($_FILES["PictureLocation"])) && ($_FILES['PictureLocation']['error'] == 0))
          //Check if the file is JPEG image and it's size is less than 350Kb
          $filename = basename($_FILES["PictureLocation"]["name"]);
          $ext = substr($filename, strrpos($filename, '.') + 1);
          if (($ext == "jpg") && ($_FILES["PictureLocation"]["type"] == "image/jpeg") &&
        ($_FILES["PictureLocation"]["size"] < 350000))
            //Determine the path to which we want to save this file
              $newname = dirname(__FILE__).'/upload/'.$filename;
              //Check if the file with the same name is already exists on the server
              if (!file_exists($newname))
                //Attempt to move the uploaded file to it's new place
                if ((move_uploaded_file($_FILES['PictureLocation']['tmp_name'],$newname)))
                       // echo "It's done! The file has been saved as: ".$newname;
                else
                       // echo "Error: A problem occurred during file upload!";
            else
                 // echo "Error: File ".$_FILES["PictureLocation"]["name"]." already exists";
          else
             // echo "Error: Only .jpg images under 350Kb are accepted for upload";
        else
         // echo "Error: No file uploaded";
        $filename=$row_Advert['PictureLocation'];
        // set default opentoalloffers
    if (!isset($_POST['checkopentoalloffers']))
        $_POST['checkopentoalloffers'] = 'n';
      $updateSQL = sprintf("UPDATE advert SET PictureLocation=%s, O_Make=%s, O_Model=%s, O_Country=%s, O_Year=%s, O_Colour=%s, O_Body=%s, O_Neck=%s, O_Fingerboard=%s, O_Pickups=%s, `value`=%s, `condition`=%s,  W_Make=%s, W_Model=%s, W_Country=%s, W_Year=%s, W_Colour=%s, W_Body=%s, W_Neck=%s, W_Fingerboard=%s, W_Pickups=%s, Comments=%s, opentoalloffers=%s, ChangeFlg = %s  WHERE advert_id=%s",
                           GetSQLValueString($filename, "text"),
                           GetSQLValueString($_POST['O_Make'], "text"),
                           GetSQLValueString($_POST['O_Model'], "text"),
                           GetSQLValueString($_POST['O_Country'], "text"),
                           GetSQLValueString($_POST['O_Year'], "date"),
                           GetSQLValueString($_POST['O_Colour'], "text"),
                           GetSQLValueString($_POST['O_Body'], "text"),
                           GetSQLValueString($_POST['O_Neck'], "text"),
                           GetSQLValueString($_POST['O_Fingerboard'], "text"),
                           GetSQLValueString($_POST['O_Pickups'], "text"),
                           GetSQLValueString($_POST['value'], "int"),
                           GetSQLValueString($_POST['condition'], "text"),
                           GetSQLValueString($_POST['W_Make'], "text"),
                           GetSQLValueString($_POST['W_Model'], "text"),
                           GetSQLValueString($_POST['W_Country'], "text"),
                           GetSQLValueString($_POST['W_Year'], "date"),
                           GetSQLValueString($_POST['W_Colour'], "text"),
                           GetSQLValueString($_POST['W_Body'], "text"),
                           GetSQLValueString($_POST['W_Neck'], "text"),
                           GetSQLValueString($_POST['W_Fingerboard'], "text"),
                           GetSQLValueString($_POST['W_Pickups'], "text"),
                           GetSQLValueString($_POST['Comments'], "text"),
                           GetSQLValueString($_POST['checkopentoalloffers'], "text"),
                           GetSQLValueString('y', "text"),
                           GetSQLValueString($_POST['advert_id'], "int"));
      mysql_select_db($database_guitarswap_db, $guitarswap_db);
      $Result1 = mysql_query($updateSQL, $guitarswap_db) or die(mysql_error());
        $updateGoTo = "Member2.php";
         if (isset($_SERVER['QUERY_STRING'])) {
           $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
           $updateGoTo .= $_SERVER['QUERY_STRING'];
         header(sprintf("Location: %s", $updateGoTo));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="Layout3.css" rel="stylesheet" type="text/css" /><!--[if IE 5]>
    <style type="text/css">
    /* place css box model fixes for IE 5* in this conditional comment */
    .twoColFixLtHdr #sidebar1 { width: 230px; }
    </style>
    <![endif]--><!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColFixLtHdr #sidebar1 { padding-top: 30px; }
    .twoColFixLtHdr #mainContent { zoom: 1; }
    /* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
    </style>
    <![endif]-->
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
        background-color: #FFF;
        margin-left: 20px;
    .twoColFixLtHdr #container #main3 #form1 div fieldset {
        border: thin ridge #CCC;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    //-->
    </script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="twoColFixLtHdr">
    <div id="container">
      <div id="header">
        <div id="Righty">
          <ul id="MenuBar2" class="MenuBarHorizontal">
        <li><a href="index.php">Search</a>      </li>
        <li><a href="Member2.php">Members</a></li>
      </ul>
      <p> </p>
    </div>
    <span id="LoginDiv">
        <?php
          if (isset($_SESSION['MM_Username']))
            echo "hello ". $_SESSION['MM_Username']. "";
            echo " <a href='Logout.php'>Log out</a> ";
        else
            echo "
                <a href='Login.php'>Login</a> / <a href='Register.php'>Register</a>
        ?>
        </a></span>
    <div id="Middle">
      <h1 align="center">GuitarSwap</h1>
    </div>
      </div>
      <div id="sidebar1">
        <h4>Members Area</h4>
        <ul id="MenuBar1" class="MenuBarVertical">
          <li><a href="Member2.php">My Adverts</a></li>
          <li><a href="NewAdvert.php">Create new Advert</a></li>
          <li><a href="UpdateUserDets.php">My Account</a></li>
        </ul>
        <h3>  </h3>
      </div>
      <div id="mainContent">
        <h4>Update Advert</h4>
        <!-- end #mainContent -->
      </div>
      <!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats -->
      <div id="main3">
        <div id="main">
          <fieldset>
            <legend>Please update advert details and confirm</legend>
            <form action="<?php echo $editFormAction; ?>" enctype="multipart/form-data" method="post" name="form4" id="form4">
              <input type="hidden" name="advert_id" value="<?php echo $row_Advert['advert_id']; ?>" />
              <p></p>
              <table width="650" align="center">
                <tr valign="baseline">
                  <td width="17" rowspan="15" valign="middle" nowrap="nowrap"><?php echo "<img src='upload/" .$row_Advert['PictureLocation']."' width='64' height='180'/>" ?></td>
                  <td width="133" align="right" nowrap="nowrap"> </td>
                  <td width="240" align="center" bgcolor="#CCCCCC"><strong>Offered</strong></td>
                  <td width="240" align="center" bgcolor="#CCCCCC"><strong>Wanted</strong></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Make:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Make" type="text" value="<?php echo $row_Advert['O_Make']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Make" type="text" value="<?php echo $row_Advert['W_Make']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Model:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Model" type="text" value="<?php echo $row_Advert['O_Model']; ?>" size="30" maxlength="30" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Model" type="text" value="<?php echo $row_Advert['W_Model']; ?>" size="30" maxlength="30" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Country:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Country" type="text" value="<?php echo $row_Advert['O_Country']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Country" type="text" value="<?php echo $row_Advert['W_Country']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Year:</strong></td>
                  <td bgcolor="#CCFFCC"><span id="sprytextfield1">
                  <input name="O_Year" type="text" value="<?php echo $row_Advert['O_Year']; ?>" size="4" maxlength="4" />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span><span class="textfieldMaxValueMsg">The entered value is greater than the maximum allowed.</span></span></td>
                  <td bgcolor="#CCFFFF"><span id="sprytextfield2">
                  <input name="W_Year" type="text" value="<?php echo $row_Advert['W_Year']; ?>" size="4" maxlength="4" />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldMinValueMsg">The entered value is less than the minimum required.</span><span class="textfieldMaxValueMsg">The entered value is greater than the maximum allowed.</span></span></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Colour:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Colour" type="text" value="<?php echo $row_Advert['O_Colour']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Colour" type="text" value="<?php echo $row_Advert['W_Colour']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Body:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Body" type="text" value="<?php echo $row_Advert['O_Body']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Body" type="text" value="<?php echo $row_Advert['W_Body']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Neck:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Neck" type="text" value="<?php echo $row_Advert['O_Neck']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Neck" type="text" value="<?php echo $row_Advert['W_Neck']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Fingerboard:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Fingerboard" type="text" value="<?php echo $row_Advert['O_Fingerboard']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Fingerboard" type="text" value="<?php echo $row_Advert['W_Fingerboard']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Pickups:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="O_Pickups" type="text" value="<?php echo $row_Advert['O_Pickups']; ?>" size="30" maxlength="15" /></td>
                  <td bgcolor="#CCFFFF"><input name="W_Pickups" type="text" value="<?php echo $row_Advert['W_Pickups']; ?>" size="30" maxlength="15" /></td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Condition:</strong></td>
                  <td bgcolor="#CCFFCC"><label for="condition">
                    <select name="condition" size="1" id="condition">
                      <option selected="selected" value="" <?php if (!(strcmp("", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>---select---</option>
                      <option value="immaculate" <?php if (!(strcmp("immaculate", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>immaculate</option>
                      <option value="excellent" <?php if (!(strcmp("excellent", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>excellent</option>
                      <option value="good" <?php if (!(strcmp("good", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>good</option>
                      <option value="well used" <?php if (!(strcmp("well used", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>well used</option>
                      <option value="poor" <?php if (!(strcmp("poor", $row_Advert['condition']))) {echo "selected=\"selected\"";} ?>>poor</option>
                  </select>
                  </label></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Value:</strong></td>
                  <td bgcolor="#CCFFCC"><span id="sprytextfield3">
                  <input name="value" type="text" value="<?php echo $row_Advert['value']; ?>" size="11" maxlength="11" />
    <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td align="right" valign="top" nowrap="nowrap"><strong>Comments:</strong></td>
                  <td bgcolor="#CCFFCC"><textarea name="Comments" cols="25" rows="3"><?php echo $row_Advert['Comments']; ?></textarea></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td nowrap="nowrap" align="right"><strong>Picture location</strong></td>
                  <td bgcolor="#CCFFCC"><label for="checkopentoalloffers"></label>                <input type="file" name="PictureLocation" value="<?php echo $row_Advert['PictureLocation']; ?>" size="20" /></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
                <tr valign="baseline">
                  <td height="26" align="right" nowrap="nowrap"><strong>Open to all offers:</strong></td>
                  <td bgcolor="#CCFFCC"><input name="checkopentoalloffers" type="checkbox" id="checkopentoalloffers" value="y" <?php if (!(strcmp($row_Advert['opentoalloffers'],"y"))) {echo "checked=\"checked\"";} ?> /></td>
                  <td bgcolor="#FFFFFF"> </td>
                </tr>
              </table>
              <p> </p>
              <div id="submitdiv">
                <input type="hidden" name="MM_update" value="form4" />
                <input name="submit button" type="submit" id="submit button" value="Update Advert" />
              </div>
              <div id="exitdiv">
                <label for="button15"></label>
                <input name="button" type="button" id="button15" onclick="MM_goToURL('parent','Member2.php');return document.MM_returnValue" value="Exit" />
                <label for="button16"></label>
              </div>
              <p> </p>
            </form>
          </fieldset>
          <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {validateOn:["blur"], minValue:1900, maxValue:2010, isRequired:false});
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "integer", {validateOn:["blur"], minValue:1900, maxValue:2010});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "integer", {minValue:1900, maxValue:2010, validateOn:["blur"], isRequired:false});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "currency", {validateOn:["blur"], isRequired:false});
          </script>
          <br class="clearfloat" />
      <!-- end #container -->
    </div></div></div>
    <script type="text/javascript">
    <!--
    var  = new Spry.Widget.MenuBar("", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($Advert);
    if (is_resource($Result1)) mysql_free_result($Result1);
    ?>

    Please note,
    Removing I investigated spry a little more, in the end I settled for removing spry altogether,
    Maybe it was because the text field in a $GET (for the default) AND a $PUT (for the update)

  • Error when updating pages from template

    When updating pages from a template I have been occasionally
    getting this error message:
    While executing onLoad in Swap Image.htm, the following
    JavaScript error(s) occured:
    At line 325 of the file "Hard Drive: Applications: Macromedia
    Dreamweaver 8: Configuration: Behaviors: Actions: Swap Image.js":
    Reference Error: createObjRefs is not Defined
    I am on a Mac running 10.3.9, Dreamweaver 8.02.2809
    Any ideas on how to fix this?
    Thanks,
    Paul

    When updating pages from a template I have been occasionally
    getting this error message:
    While executing onLoad in Swap Image.htm, the following
    JavaScript error(s) occured:
    At line 325 of the file "Hard Drive: Applications: Macromedia
    Dreamweaver 8: Configuration: Behaviors: Actions: Swap Image.js":
    Reference Error: createObjRefs is not Defined
    I am on a Mac running 10.3.9, Dreamweaver 8.02.2809
    Any ideas on how to fix this?
    Thanks,
    Paul

Maybe you are looking for