Forums

wp-greet not working on 2.7 (3 posts)

  1. michin4
    Member
    Posted 9 months ago #

    I can see the gallery of "e-cards" I uploaded into (NextGEN Gallery 1.1.0), but when I click on any of the pictures I get a blank page with the following text:

    "Forbidden
    You don't have permission to access / on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at mywebsitename.com Port 80
    "

    Before I upgraded to 2.7 I was using a fix (which worked) by "work4justice": http://wordpress.org/support/topic/172145?replies=3

    but after the upgrade to 2.7 and after updating my plugins, wp-greet stopped working. Downgrading didn't help so I upgraded again to the latest versions of the plugins and it still doesn't work.

    You can see what I'm talking about at this -link-
    Anyone know how to fix this?

  2. tuxlog
    Member
    Posted 8 months ago #

    hello michin,

    this might be a problem with the security settings of your provider.
    it refuses the url of the image and reroutes you to / which may not be accessed.

    please replace the follwiong line in wpg-form.php:

    $message .= "<img src='".get_settings('siteurl') . $picurl ."' width='".$wpg_options['wp-greet-imagewidth'] ."' />
    ";

    with

    $message .= "<img src='".$picurl ."' width='".$wpg_options['wp-greet-imagewidth'] ."' />
    ";

    and try again.

    good luck
    hans

  3. michin4
    Member
    Posted 7 months ago #

    Hey thanks for the response Tuxlog :)

    but it seems it's already like that and it doesn't work:

    $subj = $_POST['title'];
    
        // html message bauen
        $message = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
        $message .= "<title>".$subj."</title>\n</head><body>";
        $message .= $wpg_options['wp-greet-default-header'] . "\r\n";
        if ($inline)
          $message .= "<p><img src=\"cid:wpgreetimg\" alt=\"wp-greet card image\" width=\"".$wpg_options['wp-greet-imagewidth']."\"/></p>";
        else
          $message .= "<p><img src='".$picurl ."' width='".$wpg_options['wp-greet-imagewidth'] ."' /></p>";
        $message .= "<br />";
    
        // nachrichtentext escapen
        $_POST['message'] = nl2br(attribute_escape($_POST['message']));

    although I did find some places in the code that still use "siteurl" like this:

    $smprefix = get_settings('siteurl') . '/wp-content/plugins/wp-greet/smilies/';
    	preg_match_all('(:[^40]+:)', $_POST['message'], $treffer);

    not sure if I should attempt modifying those with a '$picurl'

    I guess I'll try talking to my web host if there isn't a work around.

Reply

You must log in to post.

About this Topic