close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Moved PowerStore to subfolder and Admin pages wont load everything else works.

Thread began 1/16/2010 10:59 pm by Andre.M | Last modified 1/17/2010 6:46 am by Office Guy-172461 | 1678 views | 4 replies |

Andre.M

Moved PowerStore to subfolder and Admin pages wont load everything else works.

I uploaded Powerstore to a subfolder one level down called shop.
I had to tweak the links from

<?php require_once( "../WA_Globals/WA_Globals.php" ); ?>
to
<?php require_once( "WA_Globals/WA_Globals.php" ); ?>

and
<a href="../careers.php">
to
<a href="careers.php">

(just an example)

so the entire site works except:

Admin Area, i get this error:

Fatal error: main() [function.require]: Failed opening required 'WA_ValidationToolkit/WAVT_Scripts_PHP.php' (include_path='.:/usr/lib/php') in /homepages/43/d237219477/htdocs/komsec/shop/Admin/index.php on line 1

and the user login / logout page
when i log in or log out it refreshes to a blank page no source at all no error either.


$WAGLOBAL_Root_URL = "http://www.******.com/shop/" ;
$WAGLOBAL_localRoot = "/shop/";
$WAGLOBAL_remoteRoot = "/shop/";

Ive fried my brain tinkering with code trying to get it going.
any ideas would help

thanks

Sign in to reply to this post

neilo

The 'require_once' paths at the top of the pages that are in the Admin folder will all begin with:

../

<?php require_once("../WA_
<?php require_once('../Connections
<?php require_once( "../WA_



etc.

If they're in the Admin folder, they have to be looking outside of it for the required files.

So assuming that all of the files and folders that came out of your downloaded PowerStore folder are placed in the same folder on your remote server called 'Shop', then you shouldn't need to change the paths in any of them (I think?). I believe they have their own internal integrity, i.e. are all relative to each other inside the same folder.

The only link(s) you will need to make will be from your (non-store)'s home page to the Shop index.php page (or have your site-root index page redirecting to the Shop/index.php page).

Your WA_Globals looks fine to me . . .

Sign in to reply to this post

Andre.M

Dreamweaver killed the clickity mouse

im hoping a moderator can just delete this thread.
im not sure how but when i was working on the site locally and created the shop subfolder moved everything there and let dreamweaver auto update the links and i inserted a some code in main.dwt template and updated the files. i believe thats when all link hell broke loose
im finding Template/index.php links
and ../../../ links arrggg.

im pretty much going line by line checking the 6000 files :o

Sign in to reply to this post

neilo

Not to worry, Andre.

Paths issues are one of the major causes of headaches around here.

Have you done much style tweaking to your PowerStore pages? Sometimes it makes sense - even for your own peace of mind - just to start with a fresh copy. Now that you know you can quickly redo the WA_Globals.php file and the localhost.php file in the Connections folder, (or use the old ones - as long as they go in the same place) it would put your mind at rest if you just uploaded fresh, all of it to the Shop folder. Make sure you have the most recent version of the download - I think its 1.0.2.

Not sure if you feel this may be an option for you, - either way, please post back with any queries.

Sign in to reply to this post

Office Guy-172461

Or use this technique to replace all of these:

../../../

Find all instances of a variable in a site

185/

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