www.webdeveloper.com
Results 1 to 2 of 2

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

  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

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.11723 seconds
  • Memory Usage 2,859KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (2)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates