PhotoPlog

PhotoPlog (http://www.photoplog.com/forum/index.php)
-   Troubleshooting & Problems (http://www.photoplog.com/forum/forumdisplay.php?f=6)
-   -   error (http://www.photoplog.com/forum/showthread.php?t=1633)

Lpspider 08-25-2007 01:53 AM

error
 
I get the following error when trying to view the gallery:

Code:

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/user/public_html/bionicwomanforum/gallery/settings.php on line 92

Warning: main(./global.php) [function.main]: failed to open stream: No such file or directory in /home/user/public_html/bionicwomanforum/gallery/settings.php on line 93

Fatal error: main() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/bionicwomanforum/gallery/settings.php on line 93

How do I fix it?

Morgan 08-25-2007 01:57 AM

Looks like the server path you have set in the PhotoPlog config file is incorrect. Try this:
Code:

define('PHOTOPLOG_FWD','/home/user/public_html/bionicwomanforum');

Lpspider 08-25-2007 02:05 AM

^ That's what I'm using.

thanks,
Daniel

Morgan 08-25-2007 02:17 AM

Try this instead, but I cannot tell you your server path as I don't know it with certainty:
Code:

define('PHOTOPLOG_FWD','/home/ochaecom/public_html/bionicwomanforum');
If that doesn't work, copy the following into a file named whatismypath.php and FTP it into your main forum directory, then call it from your browser, and it should tell you the server path:
Code:

<?php echo getcwd(); ?>

Lpspider 08-25-2007 02:31 AM

My last reply was wrong. I cleared my cookies after making a change and now get this error:

Code:

Parse error: syntax error, unexpected T_STRING in /home/ochaecom/public_html/bionicwomanforum/gallery/config.php on line 3

Morgan 08-25-2007 02:42 AM

A parse error usually indicates a typo. What are the contents of the PhotoPlog config file?

Lpspider 08-25-2007 02:52 AM

Code:

<?php// ########################################################################// ####################### START CONFIGURATION ############################// ########################################################################// set the full path to your main forum directory: if you are not sure of // the full path, look in your vB config file for $config['Misc']['forumpath']// and see if there is a value present - if not, ask your host about it or// try the getcwd function: http://www.php.net/manual/en/function.getcwd.php

define('PHOTOPLOG_FWD','/home/myusername/public_html/bionicwomanforum');


**************************************************************************PhotoPlog Lite License===========================================================================This software is as-is, no warranty of any kind, use at your own risk.You are granted free use of this software. However, you are not permitted under any circumstances to redistribute the software, whether in whole or in part. Also, the 'powered by' links must remain intact and visible. Make sure to understand that this is *not GPL software. Do not redistribute it, and do not use parts of it in other software. This software is copyrighted in its entirety to ' ' a/k/a  LLC 2005, all rights reserved.The software author/entity are in no way responsible for your site content.All copyright notices and 'powered by' links must not be changed or removed.***************************************************************************/// ########################################################################// ######################## END CONFIGURATION #############################// ########################################################################?>


Morgan 08-25-2007 02:55 AM

With everything jammed together like that, it looks like you may have FTPed the PhotoPlog config file in BINARY mode. Grab the original PhotoPlog config file, set the server path with a TEXT ONLY editor such as Notepad, and then FTP the PhotoPlog config file in ASCII mode.

Lpspider 08-25-2007 04:10 AM

That was the problem. Thanks!


All times are GMT. The time now is 09:49 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.