PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost Bug Reports

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 9th, 2011, 05:17 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Location: Montreal, QC
Posts: 1
Send a message via MSN to mox-
chdir problem

On line 57 of header-inc.php there is a chdir()

Next line, it includes global.php

In the global.php I have a module that I load that do an other chdir and when global.php is completely loaded the current directory have changed.

At line 139 and MANY other occurences, there is an include that assume that the current working directory is the forum. Unfortunately it's not in the right directory and I am getting a lot of error like:
Quote:

[Wed Feb 09 18:04:57 2011] [error] [client 132.208.12.66] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './includes/class_postbit.php' (include_path='.:/usr/share/pear:/usr/share/php') in /web/.../materiel/header-inc.php on line 139, referer: htt p://.../forums/forumdisplay.php?f=7
To fix it I duplicated the chdir($vbpath) just after the include of global.php and it's working.

I understand that the problem is in a module that I have created and I will be fixing it. The problem is that other people may have that issue too and they may not know how to debug php properly..

I suggest that you do the includes like:
include($vbpath . "global.php"); <-- For all includes
or that you add a chdir after loading global.php
mox- is offline   Reply With Quote
Old February 10th, 2011, 07:42 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
This issue has no bearing on our product or its a code and function. What you have done is called a code mod or hack and that is the problem as you have posted and you would need to fix that within your code mod. Your code mod should chdir back to the forum when its done its stuff.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: chdir() [function.chdir]: No such file or directory (errno 2) 347Monster Installs and Upgrade - vBulletin 3.6x 3 May 9th, 2008 06:20 AM
chdir Error hgudapati Photopost Pro Installation & Upgrades 1 August 12th, 2007 12:06 PM
Login problem and private album password problem bicpm Photopost Pro Installation & Upgrades 10 March 11th, 2005 10:17 AM
Problem uploading and problem with .htaccess protection Shon Installs and Upgrade - vBulletin 3.0.X 12 February 7th, 2005 03:53 PM


All times are GMT -5. The time now is 02:15 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0