WordPress.org

Ready to get started?Download WordPress

Forums

WP-Addpub
[resolved] Plugin wasn't working (1 post)

  1. victorbv
    Member
    Posted 3 years ago #

    The wp-addpub plugin version 1.2.5 wasn't working in a Windows server with MySql 5.1.32-community. I found out that the insertion sql query was causing the error. At line 232 and 234, I removed the ID field from the query, and the problem was solved. The code became:

    $sql = 'INSERT INTO '.$table_banners.' (title, zone, filter, file_link, file_url, file_path, width, height, target, version, html_code, active, lang_id)
    VALUES
    ("'.mysql_real_escape_string(stripslashes($_POST['banner_title'])).'","'.mysql_real_escape_string(stripslashes($_POST['banner_zone'])).'","'.mysql_real_escape_string(stripslashes($_POST['banner_filter'])).'","'.mysql_real_escape_string(stripslashes($_POST['banner_link'])).'", "'.mysql_real_escape_string($file['url']).'", "'.mysql_real_escape_string($file['file']).'", "'.$width.'", "'.$height.'", "'.mysql_real_escape_string($target).'", "'.$version.'", "'.mysql_real_escape_string(stripslashes($htmlcode)).'", '.$active.', 0)';

    Hope it helps.

    http://wordpress.org/extend/plugins/wp-addpub/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags