close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Overlooking the obvious?

Thread began 7/29/2009 11:01 pm by shaunbennett.uk349743 | Last modified 7/30/2009 11:47 am by shaunbennett.uk349743 | 2118 views | 3 replies |

shaunbennett.uk349743

Overlooking the obvious?

I've been converting a site to use Power CMS and get a couple of errors related to the Globals settings and the main "includes" comment to pull in the content.

I'm in that can't see the woods for the trees stage, having spotted a couple of similar threads but not sorting my own problem out:

Screen with errors showing here: aboutus.php

The site is currently set up like this as the owner uses forwarding on their domain name, hence the IP address showing:

I have a folder in the site called: cms :where the Power CMS sits, then the site I'm trying to display content is at: a folder called: dd09 :so they are both within the sites main folder but each sit on their own.

My current Globals settings are:
<?php
$WAGLOBAL_Root_URL = "http://directdialogue.co.uk/" ; //Absolute path to your site folder.
$WAGLOBAL_Site_Name = "Direct Dialogue Admin" ;

$WAGLOBAL_localRoot = "/cms/"; //relative path to your PowerCMS files on your local testing server.
$WAGLOBAL_remoteRoot = "/directdialogue.co.uk/cms/"; //relative path to your PowerCMS files on your remote server.

WA_CMS file is unchanged

These are at the very top of my page:
<?php include "Connections/localhost.php"; ?>

<?php include "WA_CMS/WA_CMS.php"; ?>

and my localhost file is:
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "web38-dd2009";
$username_localhost = "web38-dd2009";
$password_localhost = "passwordchanged";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>

Thanks in advance

Benj

Sign in to reply to this post

John LangerBeta Tester

Looks like your paths are a bit out to me.

If your site files are all in the root of the folder dd09/ then the path to your MySql connection would be <?php include "../Connections/localhost.php"; ?>. That's assuming that your Connections folder is in the root of the site. The same applies to the <?php include "WA_CMS/WA_CMS.php"; ?>. Perhaps that should be <?php include "../WA_CMS/WA_CMS.php"; ?>

Personally every time I make a new page I browse to the file required using the built in DW tools in the properties panel. Each page could be different. If you are using a DW template then get the path correct in the template and then DW will take care of it all.

The suggestion that PowerCMS creates is really just that, a suggestion. It all depends how you set up your site. The suggestion assumes that all your files and folders are in the site root. If they are not then you may have to add "../" at the front or even "../../"

Hope that helps.

Sign in to reply to this post

Jason ByrnesWebAssist

John Is correct, your paths are not pointing to the include file properly.

Where you have uploaded the PowerCMS files into the the "cms" sub directory of your domain, and the page you are trying to show the CMS data is in the "dd09" sub directory, the include paths will need to be adjusted to:
<?php include "../cms/Connections/localhost.php"; ?>

<?php include "../cms/WA_CMS/WA_CMS.php"; ?>

Sign in to reply to this post

shaunbennett.uk349743

Thanks

Just the job guys.

Thanks very much.

I kind of knew it was something along those lines, but couldn't for the life of me fathom it, yet it is so simple when the answer is looking you in the face!

Benj

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...