• Hi! I’m a novice of both Dreamweaver and WordPress and I’m trying to test WordPress themes locally. I’m using Windows 7 and have successfully installed Wamp, then I have setup WordPress without too many problems. All programs installed are latest downloaded from about 4 days ago.

    Now I have spent the last 2 full days trying to figure out why every php file from every WordPress theme is giving me this error while I live view them with Dreamweaver CS6:
    Fatal error: Call to undefined function …
    It happens with every php file. Whenever the first php function happens the error is in that line.

    I’ve tested the themes on a live server and they run fine. The error only happens locally (http://localhost/wordpress). I have googled a lot about this problem and tried a few code tweaks, and also reinstalling wordpress as suggested in some forums. But nothing is working, I need serious help! Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Is this occurring in a particular theme? Have you tried deactivating all plugins and switching to the default Twenty Twelve/ Thirteen theme?

    Thread Starter Sieglufer27

    (@sieglufer27)

    I checked everything and in my novice understanding, the programs are running fine. I just did another clean WordPress install on Wamp (with only default themes and deactivated all plugins). It’s giving me the same error with the Thirteen theme. Here is a screen: Error Screen

    On http://localhost/wordpress the themes are running fine. It’s only on Dreamweaver that can’t load the themes; but it can load the index.php file located on the root wordpress folder,, here’s a link: Good Screen

    What I am doing wrong?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thread Starter Sieglufer27

    (@sieglufer27)

    I just did that, but it’s still giving me the same error.
    Could this be a Dreamweaver bug?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I don’t think so.

    I don’t know anything about Dreamweaver, but from looking at that screenshot I’d have to assume Dreamweaver is not loading in WordPress itself, so when you try to load a template file directly, any WordPress functions (like get_header()) would be undefined.

    As I said, I don’t know anything about Dreamweaver. If there’s a way to configure Dreamweaver to load the WordPress environment, then you’ll need to do that first.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Dreamweaver – WordPress: Fatal Error’ is closed to new replies.