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 > PhotoPost Classifieds Support > Classifieds Bug Reports

Classifieds Bug Reports Post any problems you may be having with Classifieds here.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 7th, 2010, 04:21 PM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2010
Posts: 29
Classified 4.0 Admin: Edit Integration Error

Get this error on making any changes under edit integration: the file config-intc.php is chmod 777. the changes are not saved.
Quote:
Warning: fopen(config-intc.php) [function.fopen]: failed to open stream: Permission denied in /home/sitename/public_html/m/adm-misc.php on line 2050

Warning: fwrite(): supplied argument is not a valid stream resource in /home/sitename/public_html/m/adm-misc.php on line 2051

Warning: fclose(): supplied argument is not a valid stream resource in /home/sitename/public_html/m/adm-misc.php on line 2052
ndahiya
ndahiya is offline   Reply With Quote
Old February 7th, 2010, 04:47 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,706
That error tells me your config-intc.php file has not been changed to 666 permissions which makes it writable.
__________________
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
Old February 7th, 2010, 07:19 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2010
Posts: 29
i thought so too. but same error with 666 and 777
i even tried to do a chown to nobody for the file. same error.

btw, the page title says: CONFIG-INT.PHP Integration Variables

the filename is a error in the title, but it is reading variables fin from the intc file. i was able to change the variables manually in the intc file and it reads them ok. just a problem when using the web interface.
ndahiya is offline   Reply With Quote
Old February 7th, 2010, 07:22 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,706
You sure your path to photopost is correct under config settings
__________________
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
Old February 7th, 2010, 07:39 PM   #5 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2010
Posts: 29
Quote:
Originally Posted by Chuck S View Post
You sure your path to photopost is correct under config settings
yes. it is reading the contents of the config files correctly. just not writing them back?

btw, i see the problem with config-inc.php too...
ndahiya is offline   Reply With Quote
Old February 7th, 2010, 08:10 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,706
what is the server path in your config settings for your photopost directory?
__________________
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
Old February 7th, 2010, 08:28 PM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2010
Posts: 29
Quote:
Originally Posted by Chuck S View Post
what is the server path in your config settings for your photopost directory?
/home/sitename/public_html/m
ndahiya is offline   Reply With Quote
Old February 7th, 2010, 10:39 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,706
okay well that has to be some weird server thing. safe mode in php on or off?
__________________
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
Old February 11th, 2010, 07:08 PM   #9 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2010
Posts: 29
safe mode is off.
ndahiya is offline   Reply With Quote
Old February 11th, 2010, 08:59 PM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,706
well as long as the path is correct and permissions are correct on the file this has to be some weird server error. Maybe certain PHP functions are disabled. All you really are doing is opening a file reading the contents and saving the file again and writing it to disk.
__________________
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
Old February 28th, 2010, 10:55 AM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2010
Posts: 29
Warning: fopen(config-intc.php) [function.fopen]: failed to open stream: Permission denied in /home/sitename/public_html/m/adm-misc.php on line 2050

wonder if this points to something? what permission might be required to open the file?

it is saying permission denied, and not file not found... so ...
ndahiya is offline   Reply With Quote
Old February 28th, 2010, 11:13 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,706
It tells me your server is not allowing that file to be written to disk.

That all points to permissions. try setting the file to 777 and see if that helps.
__________________
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
Old February 28th, 2010, 03:58 PM   #13 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2010
Posts: 29
Chuck,

i found the bug.... it is not looking in the correct location. not sure why this is so, as it is reading them correctly previously.

when i change adm-misc.php to put in the hard-coded value of the path (line 2050), it works fine... so make it more generic:::

In file adm-misc.php
change line 2050 to
$fd = fopen($pppath."/config-intc.php","w");
and line 1846 to
$fd = fopen($PP_PATH."/config-inc.php","w");



ndahiya
ndahiya is offline   Reply With Quote
Old February 28th, 2010, 04:13 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,706
Actually line 2050 of our released code is this

Code:
Content visible to verified customers only.
That should work fine because config-intc.php is located in the same directory as adm-inc.php

If your line is what your posting then its not the current files released by us.
__________________
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
Old March 7th, 2010, 04:52 PM   #15 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2010
Posts: 29
i have no idea why this is so... could it be coz i run it integrated with vbulletin 4.0, and there might be a issue coz of that?
ndahiya is offline   Reply With Quote
Old March 7th, 2010, 06:49 PM   #16 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,706
No it should work fine if permissions on the file are 666 but most likely a server issue so you might only be able to edit the file by hand via ftp. I was merely posting in my last post because your post was incorrect because our coding is NOT what you posted.
__________________
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
Old March 27th, 2010, 11:12 AM   #17 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2010
Posts: 29
Quote:
Originally Posted by Chuck S View Post
No it should work fine if permissions on the file are 666 but most likely a server issue so you might only be able to edit the file by hand via ftp. I was merely posting in my last post because your post was incorrect because our coding is NOT what you posted.
you are correct. i had just posted the changed string, not the original.
the original is as you posted, i just need to change it to get it to work.

btw, i have it integrated with vb4
with the forums in .../www/forums and classifieds in .../www/m

am on 4.0.1 now, same issue... have it fixed now (by making the change to adm-misc.php as discussed above), but suspect it is a directory path issue, somehow...

Last edited by ndahiya; March 27th, 2010 at 11:30 AM.
ndahiya is offline   Reply With Quote
Old March 27th, 2010, 03:33 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,706
Make sure your using full server paths and you should be now but I would suspect its some weird server issue because there should be no issues saving a file that exists in the same directory as the script running it. At least for the 7 years the scripts have existed no one has reported something like that. its no problem placing $PP_PATH/ before the file so all is good.
__________________
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Photopost Classified SMF integration moreqly27 Classifieds How do I...? 3 October 25th, 2008 07:01 PM
Photopost Pro and Classified Integration. Cajunle General Discussion 3 February 17th, 2008 06:00 PM
Had to Change Hosts, Problem with PP Classified & VB Integration! HELP! Chris@TSE Classifieds Installation & Upgrades 14 February 15th, 2006 08:47 AM
Photopost Classified & VBPortal V3 integration boltonneo Classifieds Installation & Upgrades 6 January 8th, 2005 09:58 PM


All times are GMT -5. The time now is 01:28 AM.

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