4 Replies Latest reply: Nov 27, 2012 5:44 AM by Ben M RSS

    WP in Dreamweaver - Live view error

    Von Krumm Community Member

      Ok so I have gone through the step by step process of using WP themes in DW. Amazing tutorial by the way!

       

      Help:

      I cannot fix my (suppression/parse) error when trying to live data view the index.php file in contribute?

      I believe it could be in the config or load php files (reading other problems) in the root folder for wamp (C:/wamp/www). But to be honest, I really have no idea, any help?

       

      I'm using cs3 on windows vista. http://localhost/ is working

       

      My index.php file:

       

      <?php

      /**

      * Front to the WordPress application. This file doesn't do anything, but loads

      * wp-blog-header.php which does and tells WordPress to load the theme.

      *

      * @package WordPress

      */

       

      /**

      * Tells WordPress to load the WordPress theme and output it.

      *

      * @var bool

      */

      define('WP_USE_THEMES', true);

       

      /** Loads the WordPress Environment and Template */

      require('./wp-blog-header.php');

        • 1. Re: WP in Dreamweaver - Live view error
          Ben M MVP

          I cannot fix my (suppression/parse) error when trying to live data view the index.php file in contribute?

           

          What do you mean "live data view in contribute"?  This is a Dreamweaver forum.  I do not believe that Wordpress is editable in Contribute, only Dreamweaver. Additionally a parse error is not something caused by a program like DW but rather by the script. Basically it means there is a statement in the script that doesn't end or isn't ending properly, thus the parsing error. Depending on what it is you may need to post this in the Wordpress forums ( http://wordpress.org/support/ ) or contact the developer(s) of your themes, plugins, mods, etc.

          • 2. Re: WP in Dreamweaver - Live view error
            Von Krumm Community Member

            Sorry,

            I ment dream weaver.

             

            I am trying to edit a Wordpress theme by running it through dream weaver and live viewing any editing on the CSS sheets to improve my productivity.

             

            So far I have been using Firebug but would like live view to work like others have done in the tutorial.

             

            Regards

             

            Josh

            • 3. Re: WP in Dreamweaver - Live view error
              Von Krumm Community Member

              Also my parse error is on the last line of that php file I posted.

               

              The live data view not working is common in this tutorial and there is no solution as of yet other that to completely reinstall the wamp server and start a clean Wordpress folder.

               

              A great tutorial non the less. And thanks for the reply :)

              • 4. Re: WP in Dreamweaver - Live view error
                Ben M MVP

                Von Krumm wrote:

                 

                Also my parse error is on the last line of that php file I posted.

                 

                The live data view not working is common in this tutorial and there is no solution as of yet other that to completely reinstall the wamp server and start a clean Wordpress folder.

                 

                A great tutorial non the less. And thanks for the reply :)

                 

                Actually the parse error is not because of how PHP works.  PHP is a preprocessor, meaning PHP is processed first then HTML is rendered.  Any "require" or "include" type of statements at the end can include other PHP code that renders other HTML code.  I would look at disabling some of your plugins because one of them is most likely the culprit.  That's the only downside to open source is some plugins are written very well, while others are done by pure amatuers and can get you in a lot of trouble.  If you post the specific error (or google it) you may be more likely to find the root of the problem.