www.webdeveloper.com
Results 1 to 2 of 2

Thread: Wordpress.org problem. Need help! (Newb)

Hybrid View

  1. #1
    Join Date
    Mar 2014
    Posts
    2

    Question Wordpress.org problem. Need help! (Newb)

    So after I installed some plugins which were necessary for my newly purchased theme, I got this:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT COUNT(*) AS comment_count FROM wp_comments WHERE comment_approved = 1 AND comment_post_ID =

    Warning: Cannot modify header information - headers already sent by (output started at /home2/abhinav/public_html/wp-includes/wp-db.php:1055) in /home2/abhinav/public_html/wp-admin/post.php on line 233

    I'm new to this, can anyone help? I don't think it's the whitespaces either and the errors remain even after I deleted the plugins and changed the theme. Site is www.thebottomcorner.com.

    PHP Code:
    <?php
    define
    ('WP_CACHE'true); //Added by WP-Cache Manager
    define'WPCACHEHOME''/home2/abhinav/public_html/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager
    define('DB_NAME''abhinav_wrdp1');
    /** MySQL database username */
    define('DB_USER''abhinav_wrdp1');
    /** MySQL database password */
    define('DB_PASSWORD''JV0D01XsPTBMAoG');
    /** MySQL hostname */
    define('DB_HOST''localhost');
    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET''utf8');
    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE''');
    /**#@+
     * Authentication Unique Keys and Salts.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     *
     * @since 2.6.0
     */
    define('AUTH_KEY',         'GsF?*JwoQq6/PHi2!lS*@jaovoFqHDCASrJO*#HW>RvVZZ<)^7ZlU3/nS\`^Q@QIBQZxW5FD>');
    define('SECURE_AUTH_KEY',  '');
    define('LOGGED_IN_KEY',    '-BAWg<NetY!P4p>/xoIN2BOB*Fx)xQ^1I;xwyQ_K^EG8CC4j\`~z3MeWU;i;J!TON1f?0azmVwH5h<xMw');
    define('NONCE_KEY',        '>/#)|b0I~Xpnb|;-=;D(iTra48UW4*zPkE!uFrV\`R!(EmkYe*!m6p$_Z(vSwEu#BHY*fSBysGyMj<5)d1?yD?JOK!?u;GB1n');
    define('AUTH_SALT',        'j!a=1lhwrP>A=iifbO8GON(0;6>uLfztLc5HP6kljl3secnlg_#HiN\`Uj=SsOEMj\`@Z4~');
    define('SECURE_AUTH_SALT''#=3$7qFr4Wrx=oH5AR0n>>5?cyH<A)ir3B3eb-8ts#egLD^!oS4zXC5QlQ6?P0N$WT\`W;=Gljkl4Qf(D8H>');
    define('LOGGED_IN_SALT',   'A=wMuMAADwfSVM7H(RG!MwPqf=W_Nq<5P#|bImIkYN4j-Qtq1kD8*\`t^;:$u>iWT4>oH!zyE687s9doseHQ#Jc7');
    define('NONCE_SALT',       '!r9B=tK>uZI:*fQVZBx$II7fe!*RVCr_iHgV=wY5irgUTriFp9cr(U7_H-Sno)#xj$XgU?3cm/A');
    /**#@-*/
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each a unique
     * prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix  'wp_';
    /**
     * WordPress Localized Language, defaults to English.
     *
     * Change this to localize WordPress. A corresponding MO file for the chosen
     * language must be installed to wp-content/languages. For example, install
     * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
     * language support.
     */
    define('WPLANG''');
    /**
     * For developers: WordPress debugging mode.
     *
     * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG'false);
    /* That's all, stop editing! Happy blogging. */
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
        
    define('ABSPATH'dirname(__FILE__) . '/');
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH 'wp-settings.php');?>
    Help would really be appreciated. Thanks!

  2. #2
    Join Date
    Mar 2014
    Posts
    2
    Nevermind, I got it fixed!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles