close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Menu Error Message

Thread began 10/28/2010 10:33 am by mrobben375515 | Last modified 6/28/2011 7:52 am by Nico | 1902 views | 9 replies |

mrobben375515

Menu Error Message

After installing PS3, I'm getting this error message. The link to the homepage is index.php


Warning: main(../Connections/PowerStoreConnection.php) [function.main]: failed to open stream: No such file or directory in /home/content/c/u/t/cutepets/html/checkout/CSSMenuWriter/cssmw_home/menu.php on line 23

Fatal error: main() [function.require]: Failed opening required '../Connections/PowerStoreConnection.php' (include_path='.:/usr/local/lib/php') in /home/content/c/u/t/cutepets/html/checkout/CSSMenuWriter/cssmw_home/menu.php on line

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the CSSMenuWriter/cssmw_home/menu.php file please.

Sign in to reply to this post

mrobben375515

Here's the file

Attached Files
menu.zip
Sign in to reply to this post

Jason ByrnesWebAssist

try changing:
<?php
// MenuWriter connection includes
require_once($WA_dotDotSlash . "Connections/PowerStoreConnection.php");


to:
<?php
// MenuWriter connection includes
require_once("../../Connections/PowerStoreConnection.php");

Sign in to reply to this post

mrobben375515

That didn't work, so I checked the PS3 original files and that's how it comes out of the box. Do you think something is wrong with the tree xml or something else? I'm not a programmer so it's hard to diagnose things, but this line right after where you told me to make the change

if (1 == 0) {
?><?php require_once('../../Connections/PowerStoreConnection.php'); ?><?php } // End MenuWriter ignore connection includes ?>

is what you referenced that the menu.php should be looking to for the power store connection. So what does the if (1 == 0) mean? is that checking something from the tree xml or the database? I've attached the whole folder in case you need to see the tree xml or something. thanks

Attached Files
cssmw_home.zip
Sign in to reply to this post

Jason ByrnesWebAssist

No, it's something in the tree xml.

on a couple of rare occasions i have seen issues where the common logic of the file structure doesnt quite work as expected.

Usually ,the require path is relative to the file the connection being added to, but in a couple of cases, i have seen where the require path is relative to the page the menu is in instead.


try changing:
<?php
// MenuWriter connection includes
require_once("../../Connections/PowerStoreConnection.php");

to:
<?php
// MenuWriter connection includes
require_once("Connections/PowerStoreConnection.php");

Sign in to reply to this post

mrobben375515

That was it! Thanks for the help

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Nico

Same error

Getting the same error.
Tried to do what you suggest but didn't work.
The menu works when it is accessed directly or included inside a file in the root folder, but doesn't work when it's included in another file, inside a subfolder .

Attached Files
cssmw.zip
Sign in to reply to this post

Nico

Problem solved

Hi. Problem solved.
Did change the url inside the file that includes the menu (in the file that is created by the CSS menu writer).

For example I changed this
<?php require_once("CSSMenuWriter/cssmw/menu.php"); ?>

To
<?php require_once("http://www.mydomain.xxx/CSSMenuWriter/cssmw/menu.php"); ?>

Sign in to reply to this post
loading

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...