1 (edited by kudataz 2013-09-09 08:50)

Topic: help' eror when submit post {SOLVED}

TOPIC SOLVED!

when i submit post or preview like this..,

[url]http://www.google.com[/url]
[url]http://www.google.com[/url]
[url]http://www.google.com[/url]
[url]http://www.google.com[/url]
[url]http://www.google.com[/url]
[url]http://www.google.com[/url]
[url]http://www.google.com[/url]
[url]http://www.google.com[/url]

i got it..

403 Forbidden
Access to this resource on the server is denied!

see the image for detail.. http://imm.io/1hvUk
http://i.imm.io/1hvUk.gif


the problem is every i insert url / link up to 5 links, there is got eror like this.. T.T
why? plis ur help.. :'(

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

2

Re: help' eror when submit post {SOLVED}

What extensions have you installed?

3 (edited by kudataz 2013-09-08 05:15)

Re: help' eror when submit post {SOLVED}

check PM trace smile
i've read http://in.answers.yahoo.com/question/in … 328AApp6sB but dont work too T.T
i've clear all browsing data in chrome, firefox, safari, ie but doesnt work too T.T

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

4 (edited by keeshii 2013-09-08 06:14)

Re: help' eror when submit post {SOLVED}

I am 99% sure, that an extension is causing the problem. Try to deactivate them one by one, and figure out which one it is. Start with extensions that have something to do with bbcodes - checking links accessability, limiting links in post, etc. It is also possible, that separate extensions are working properly, but some of them are not compatibile together. You have to do reasearch on your own.

When you find the problematic extension, we may try to fix it. Until then, there is not much we can do.

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

Re: help' eror when submit post {SOLVED}

if I understanded correctly your PM, you gave me link to the pure punbb installation (without any extensions). Unfortunately the error still occurs. Not good, not good... I made some tests, and I noticed, that the error appears only when posting new message - editing is working perfectly fine.

summary:
post.php - post / preview => error
edit.php - post / preview => no problems...

In this case.... i have no idea, what is going on, maybe some freaky server settings (like mod_rewrite)? Let's try to change the name of the file from post.php to something else like "pretty_name.php", and you need also to correct the values in include/url/Defaut/forum_urls.php - change each line that contains "post.php" to "pretty_name.php". Now, when you will try to add new post, you will be redirected to page pretty_name.php instead of post.php.


If this doesn't help, then maybe there is really some problems in the source code hmm There is no extensions, so it must be something inside post.php. Let's concentrate on preview - this operation is shorter, so there is less places where the error can hide smile

in the lines 345 - 382 there is following code fragment:

// If preview selected and there are no errors
if (isset($_POST['preview']) && empty($errors))
{
.... // here was some code that I cutted out
<?php
}
?>

try to delete this fragment from file, and check if error dissapears after pressing preview button? If yes, you can restore this code piece by piece and check, what line is causing the problem.

Tell us what were the results of the hints I gave you, then I will continue.

regards,
keeshii

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

6

Re: help' eror when submit post {SOLVED}

And make a backup of your post.php and upload an original file from PunBB Packkage. Maybe there is a virus/malware/something else.

7 (edited by kudataz 2013-09-09 08:08)

Re: help' eror when submit post {SOLVED}

@keeshii: i think is normal file, im not change everything in post.php
when i try edit still get 403 generated T__T

<?php

// If preview selected and there are no errors
if (isset($_POST['preview']) && empty($errors))
{
    if (!defined('FORUM_PARSER_LOADED'))
        require FORUM_ROOT.'include/parser.php';

    $forum_page['preview_message'] = parse_message(forum_trim($message), $hide_smilies);

    // Generate the post heading
    $forum_page['post_ident'] = array();
    $forum_page['post_ident']['num'] = '<span class="post-num">#</span>';
    $forum_page['post_ident']['byline'] = '<span class="post-byline">'.sprintf((($tid) ? $lang_post['Reply byline'] : $lang_post['Topic byline']), '<strong>'.forum_htmlencode($forum_user['username']).'</strong>').'</span>';
    $forum_page['post_ident']['link'] = '<span class="post-link">'.format_time(time()).'</span>';

    ($hook = get_hook('po_preview_pre_display')) ? eval($hook) : null;

?>
    <div class="main-subhead">
        <h2 class="hn"><span><?php echo $tid ? $lang_post['Preview reply'] : $lang_post['Preview new topic'] ?></span></h2>
    </div>
    <div id="post-preview" class="main-content main-frm">
        <div class="post singlepost">
            <div class="posthead">
                <h3 class="hn"><?php echo implode(' ', $forum_page['post_ident']) ?></h3>
<?php ($hook = get_hook('po_preview_new_post_head_option')) ? eval($hook) : null; ?>
            </div>
            <div class="postbody">
                <div class="post-entry">
                    <div class="entry-content">
                        <?php echo $forum_page['preview_message']."\n" ?>
                    </div>
<?php ($hook = get_hook('po_preview_new_post_entry_data')) ? eval($hook) : null; ?>
                </div>
            </div>
        </div>
    </div>
<?php

}

?>

fyuh...

@trace: i used full set punbb without extension. try to post.. with my first post code here..
@dimkalinux: where is the master dimka, helllp.. T____T

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

8 (edited by kudataz 2013-12-01 07:12)

Re: help' eror when submit post {SOLVED}

TOPIC SOLVED. ^^
set up on some code

 .htaccess

solved by gugling on .htaccess by 403 forbidden page big_smile

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

9

Re: help' eror when submit post {SOLVED}

How?

Re: help' eror when submit post {SOLVED}

I known only one extensions that can compute number of links — Fancy_stop_spam. Disable it in first order.

Re: help' eror when submit post {SOLVED}

@trace: in htaccess file i must modified a few line.
@dimkalinux. no sir i dont use extension, i use default punbb without extension. before i get eror, but now is SOLVED ^^

sorry my BAD english T___T
Have a nice day >.<
(^____^)v