Problem:
The PHP include code to call the 'config.php' file is missing, or it is misplaced on the web page (ie: not located above the other includes). This result in the web page couldn't find the right path to call the Photo Gallery scripts.
Solution:
To insure the appropriateness of all include codes, it is recommend that you insert the full document path into those PHP include snippets. With this, the gallery scripts will work regardless of the location of your web page.
To find the document path, open the oneadmin/config.php file, and look for the value of Document Path. Let say it is '/home/sitename/web/oneadmin/'.
Attach the document path to all include codes, and insert them into your gallery page, like this:
include_once("/home/sitename/web/oneadmin/config.php"); ?>
- you can place this code anywhere in your web page, with condition, it is above the following two.
include("/home/sitename/web/oneadmin/photogallery/home.menu.php"); ?>
- put this line to display the gallery menu.
include("/home/sitename/web/oneadmin/photogallery/home.gallery.php"); ?>
- use this code to showcase your gallery.
|