Hi, having a few problems; ive setup TP so in theory i will allow registered users to submit an article, but when they click on Submit an article! on theirs tools menu it just takes them to the frontpage?
Also how do users go about upload files? as admin I get the option of upload file on my own tools menu but the same does not appear on a standard user though it should be set?
I did have an issue installing TP, I found that though it said all was installed I had to manually upload most of the files afterwards (which may be a problem).
Regards!
Yeah, this goes for me too...
Regarding the editor, I've checked the wysiwyg folder on server, and found this in the file error_log:
[06-Feb-2006 11:11:02] PHP Warning: filesize(): open_basedir restriction in effect. File(/home/XXX/public_html/..) is not within the allowed path(s): (/home/XXX/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/XXX/public_html/smfForum/wysiwyg/whizzypic.php on line 60
[06-Feb-2006 11:11:02] PHP Warning: filemtime(): open_basedir restriction in effect. File(/home/XXX/public_html/..) is not within the allowed path(s): (/home/XXX/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/XXX/public_html/smfForum/wysiwyg/whizzypic.php on line 61
Although, the installation seemed to work fine for me... :o
strange, ive just downloaded the manual install files and currently uploading to see what happens :knuppel2:
Update - made no difference, still takes me to the front page when I try to submit an article.
Is your article linked?
Quote from: cripâ€Ã,¦ on February 06, 2006, 11:46:01 AM
Is your article linked?
Not sure I understand? I have a menu button going to an article section on the site?? If I login to a test user account and click on Add Article it just comes back to the frontpage regardless? cheers!
Sounds like the permission has not been given to members only Admin, this you can change.
As far as I can tell my permissions are set correctly? all accept Guests are allowed to submit an article... very odd, also on the download manager as a user I get no option to upload? Regards!
The premission's settings are very tricky, both TP and SMF must be set correct..I suggest you review your premissions again.
Thanks for your help so far - I managed to get Uploads working, but their still is a issue with "Submit an article!", when pressed it just takes you back to the frontpage, ive even tried using the direct url from my admin panel: index.php?action=tpmod&sub=submitarticle
Regards!
Have you checked the box in TP-Admin/settings/frontpage there you have some checkboxes where you mannage the settings of what to show or not and where.
All seems fine, regardless of what settings I jab. When you click on submit Article it takes you to the frontpage (where I assume it should bring up a post type box to type in the text you want).
Regards!
Yeah, it's kinda the same over here...
Quote from: misjka on February 06, 2006, 11:28:30 AM
Yeah, this goes for me too...
Regarding the editor, I've checked the wysiwyg folder on server, and found this in the file error_log:
[06-Feb-2006 11:11:02] PHP Warning: filesize(): open_basedir restriction in effect. File(/home/XXX/public_html/..) is not within the allowed path(s): (/home/XXX/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/XXX/public_html/smfForum/wysiwyg/whizzypic.php on line 60
[06-Feb-2006 11:11:02] PHP Warning: filemtime(): open_basedir restriction in effect. File(/home/XXX/public_html/..) is not within the allowed path(s): (/home/XXX/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/XXX/public_html/smfForum/wysiwyg/whizzypic.php on line 61
Although, the installation seemed to work fine for me... :o
I'm going to assume this is your host limiting both of you. Since both of you seem to be having the same problem.
open_basedir restriction in effect. is a limiting feature of PHP I believe. You may have to ask your host about this.
I own and run dedicated server, and have no issues with any other website/script or clients. Just checked the wysiwyg folder and their is no error log. As a admin I have not issues creating a new article, only as a user does it simply refresh to the sites frontpage.
Regards!
My webhost says "No way we're gonna make that kind of changes - the script author has to rewrite his code!" :knuppel2:
I am also having this problem. :(
Quote from: misjka on February 06, 2006, 05:59:32 PM
My webhost says "No way we're gonna make that kind of changes - the script author has to rewrite his code!" :knuppel2:
I would point out the fact that many hosts already do this and say bye bye to them.
Though, my webhost has been very service minded ever since he became my webhost so for sure there must be very good reasons for me to choose another one! Scripts that are hazzardous in some way certainly not will be that kinda good reason :knuppel2:
As far as I know the open_basedir feature has never been exploited in PHP. There's not much you can do if this is causing a problem unless Bloc figures out a way for it to work. But IMO, it's not something Bloc should have to fix, only something he would fix for being nice. I'm not even sure if it can be fixed....
Here's what open_basedir does.
Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.
Quote from: IchBinâââ,¬Å¾Ã,¢ on February 06, 2006, 06:08:04 PM
Quote from: misjka on February 06, 2006, 05:59:32 PM
My webhost says "No way we're gonna make that kind of changes - the script author has to rewrite his code!" :knuppel2:
I would point out the fact that many hosts already do this and say bye bye to them.
Ive checked
'open_basedir' using PHPinfo and its set to
'no value', as recommend if their are any issues. Any suggestions? It must be caused by another problem??
Regards!
The php settings on my host are the same.
open_basedir no value no value
This all boils down to the wysiwyg editor. Try turning it off, and see if the submit article still goes haywire.
Using a WYSWIWYG editor has always presented a problem, and I have tried a few. But still no perfect one has been found. My knowledge of the intricate javascript used in those is not enough for me to write one from scratch. ;)
I am currently looking at ways to improve the article/submission features - and moving away from WYSIWYG editors that "do all". Uploading pictures, selecting images etc. can be better, and more secure - done as native TP functions.
Turning off the WYSIWYG editor in TP settings doesn't make any difference. I'm still taken back to the front page.
just thought I would post the link, just in case there was something wrong with that.
http://www.domain.com/smf/index.php?action=tpmod&sub=submitarticle
Quote from: IchBinÃ,â,,¢ on February 06, 2006, 06:32:29 PM
As far as I know the open_basedir feature has never been exploited in PHP. There's not much you can do if this is causing a problem unless Bloc figures out a way for it to work. But IMO, it's not something Bloc should have to fix, only something he would fix for being nice. I'm not even sure if it can be fixed....
Here's what open_basedir does.
Limit the files that can be opened by PHP to the specified directory-tree, including the file itself. This directive is NOT affected by whether Safe Mode is turned On or Off.
OK, I'm fresh into php and thus know just about nil about it. But I attach the note from my webhost anyway for you to see. (Btw, I gave him the link to this thread before he replied - so I guess he's been reading here):
Hi,
No sorry it is not something we can fix. You are restricted by open base
directory rules and this will not be changed for security reasons. The
script authors would need to design their script to work with shared hosting
accounts.
Quote from: Bloc on February 06, 2006, 10:55:42 PM
This all boils down to the wysiwyg editor. Try turning it off, and see if the submit article still goes haywire.
No, the behaviour is still the same without the wysiwyg editor...
Quote from: DarkMain on February 07, 2006, 02:03:11 AM
Turning off the WYSIWYG editor in TP settings doesn't make any difference. I'm still taken back to the front page.
just thought I would post the link, just in case there was something wrong with that.
http://www.domain.com/smf/index.php?action=tpmod&sub=submitarticle
Actually the link is now: http://www.domain.com/smf/index.php?action=tpmod;sa=submitarticle . Notice the change from "sub=submitarticle" to "sa=submitarticle".
Its a bug i will need to correct, but for now: open TPortalblocks.template and search for "&sub=submitarticle", then replace with ";sa=submitarticle".
:) Working properly if I put the link directly into the browser. How would I update the button url to match the above? I can only assume everyone must have this issue as we all downloaded the same package?
Ok,
Regards! thanks :)
Update - talk about efficacy's, you've answered my post before I even had a chance to post it :)
Quote from: Bloc on February 07, 2006, 09:30:58 AM
Its a bug i will need to correct, but for now: open TPortalblocks.template and search for "&sub=submitarticle", then replace with ";sa=submitarticle".
Thanks, Bloc! Worked like a charm - of course ;)!
Legend!
But Insert Image in the editor duzzent work, duzz it? Not the Browse button, at least, since i just get my Error 404 page to show up as I'm supposed to see the image previews I guess...? How do I upload pics, btw?