 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
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
|
| |
February 7th, 2010, 04:47 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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.
|
| |
February 7th, 2010, 07:22 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,706
|
You sure your path to photopost is correct under config settings
|
| |
February 7th, 2010, 07:39 PM
|
#5 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2010
Posts: 29
| Quote:
Originally Posted by Chuck S 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...
|
| |
February 7th, 2010, 08:10 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,706
|
what is the server path in your config settings for your photopost directory?
|
| |
February 7th, 2010, 08:28 PM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2010
Posts: 29
| Quote:
Originally Posted by Chuck S what is the server path in your config settings for your photopost directory? | /home/sitename/public_html/m
|
| |
February 7th, 2010, 10:39 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
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?
|
| |
February 11th, 2010, 07:08 PM
|
#9 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2010
Posts: 29
|
safe mode is off.
|
| |
February 11th, 2010, 08:59 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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 ...
|
| |
February 28th, 2010, 11:13 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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
|
| |
February 28th, 2010, 04:13 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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?
|
| |
March 7th, 2010, 06:49 PM
|
#16 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
March 27th, 2010, 11:12 AM
|
#17 (permalink)
| | Junior Member Verified Customer
Join Date: Feb 2010
Posts: 29
| Quote:
Originally Posted by Chuck S 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.
|
| |
March 27th, 2010, 03:33 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
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.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 01:28 AM. | |