 | |  | | | Classifieds How do I...? Wondering how to do something in Classifieds? |
May 18th, 2010, 12:21 AM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: May 2010
Posts: 9
| Changed Permissions on Template files - Broken Classifieds System?
So I was looking at some edits people had made to remove the auction fields from the uploadproduct.tmpl but i noticed i was not able to save the template file after i made changes. The admin panel was reporting that the proper permissions were not set on those files.
I changed all the tmpl files in the vb3enhanced directory to 666 and i think i broke something.
Now i can't even get into my admin panel, i get these error messages in my browser. Quote:
Warning: include(/home/dirtyimp/public_html/classifieds/templates/vb3enhanced/thumbnail.tmpl): failed to open stream: Permission denied in /home/dirtyimp/public_html/classifieds/pp-inc.php on line 369
Warning: include(): Failed opening '/home/dirtyimp/public_html/classifieds/templates/vb3enhanced/thumbnail.tmpl' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dirtyimp/public_html/classifieds/pp-inc.php on line 369
Warning: include(/home/dirtyimp/public_html/classifieds/templates/vb3enhanced/ppopen.tmpl): failed to open stream: Permission denied in /home/dirtyimp/public_html/classifieds/pp-inc.php on line 4602
Warning: include(): Failed opening '/home/dirtyimp/public_html/classifieds/templates/vb3enhanced/ppopen.tmpl' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dirtyimp/public_html/classifieds/pp-inc.php on line 4602
Warning: include(/home/dirtyimp/public_html/classifieds/templates/vb3enhanced/ppclose.tmpl): failed to open stream: Permission denied in /home/dirtyimp/public_html/classifieds/pp-inc.php on line 4603
Warning: include(): Failed opening '/home/dirtyimp/public_html/classifieds/templates/vb3enhanced/ppclose.tmpl' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dirtyimp/public_html/classifieds/pp-inc.php on line 4603
| Is there any easy way to restore access to my system? Its non-production but i was hoping to go live very soon. Thanks for any help you can offer!
|
| |
May 18th, 2010, 12:29 AM
|
#2 (permalink)
| | Junior Member Verified Customer
Join Date: May 2010
Posts: 9
|
/home/dirtyimp/public_html/classifieds/pp-inc.php on line 369
This refers to:
// Get the thumbnail templates
include( "{$Globals['TMPL_PATH']}/{$Globals['thumbborder']}.tmpl" );
Warning: include(): Failed opening '/home/dirtyimp/public_html/classifieds/templates/vb3enhanced/ppopen.tmpl' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dirtyimp/public_html/classifieds/pp-inc.php on line 4602
Line 4602 and 4603 refer to
include "{$Globals['TMPL_PATH']}/ppopen.tmpl";
include "{$Globals['TMPL_PATH']}/ppclose.tmpl";
Simply put, it looks like a permission issue. What can i change back so that there is the proper access to files that the program needs to operate normally?
|
| |
May 18th, 2010, 07:33 AM
|
#3 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
well is your templates directory 755?
The templates within the templates/vb3enhanced folder 666?
|
| |
May 18th, 2010, 11:35 AM
|
#4 (permalink)
| | Junior Member Verified Customer
Join Date: May 2010
Posts: 9
|
Chuck-
Again, thanks for your help. I double checked the permissions on the templates directory, and everything appears to be working again. So this is good!
Now, with all my templates within the vb3enhanced directory set to 666 i shouldn't have an problems editing them right?
|
| |
May 18th, 2010, 11:54 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
Nope you should be fine
|
| |
May 18th, 2010, 05:19 PM
|
#6 (permalink)
| | Junior Member Verified Customer
Join Date: May 2010
Posts: 9
|
I made some edits to the uploadproduct.tmpl and editproduct.tmpl pages (basically removing the auction, paypal, and quantities fields). I used info that i found on this page as a guide: Removing Ad Fields
Only after i made those changes did IE start barking about errors on the following two pages.
One one each of the uploadproduct.php pages:
Line: 339
Char: 14
Error: Expected identifier, string or number
Code: 0
URL: Login - DirtyImpreza.com Classifieds
On the showproduct.php page:
Line: 2
Char: 1
Error: Syntax error
Code: 0
URL: test car - DirtyImpreza.com Classifieds
The system appears to function just fine, but i would like to see if I can edit the PHP pages so that Internet Explorer won't report that there are errors on the page.
Thanks so much!
-Aaron
|
| |
May 18th, 2010, 07:08 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
well I don't see any errors. I would suggest you compare your edited template to a stock template and see if something is changed you should not be changing.
|
| |
May 19th, 2010, 01:09 PM
|
#8 (permalink)
| | Junior Member Verified Customer
Join Date: May 2010
Posts: 9
| Quote:
Originally Posted by Chuck S well I don't see any errors. I would suggest you compare your edited template to a stock template and see if something is changed you should not be changing. | I thought so too, so i re-uploaded the original versions of the files that it was complaining about and still IE (7.0.5730.13) has that little yellow "!" icon on the lower left hand corner. Very strange indeed.
Firefox doesn't report the problem...
|
| |
May 19th, 2010, 03:14 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
your using default files and have an issue on just those two templates
url and test login?
|
| |
May 19th, 2010, 03:58 PM
|
#10 (permalink)
| | Junior Member Verified Customer
Join Date: May 2010
Posts: 9
|
Yeah it really weird because everything works fine, i guess IE just has a problem with some syntax, etc.
Here ya go to test: Main Index - DirtyImpreza.com Classifieds
user: support3
pass: photopost123
|
| |
May 20th, 2010, 07:40 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,685
|
right but no error with clean classifieds no edits? tried turning off your vb header and seeing if the error is still there?
|
| | |
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 10:23 AM. | |