• Hi everyone,
    I have tried to install wordpress onto my hosted web server running mysql.
    Changed the wp-config with my server, database and user info, uploaded the files in a wordpress directory and I get this when trying to run the install :
    Parse error: syntax error, unexpected $end in /home/content/54/6150454/html/wordpress/wp-includes/functions.php on line 2189

    What am I doing wrong?
    Thank for helping.
    Philippe

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What version of SQL and PHP are you using?

    Thread Starter helitour

    (@helitour)

    PHP 5.x and mysql 5

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Weird. Can you try re-uploading the files from a fresh download from WP?

    Thread Starter helitour

    (@helitour)

    Hello,
    Did what you suggested and it seems to be working now. Had made a mistake in the abspath. Just spent a couple of days on this issue, I’m really not an expert at this!!!
    You can go and see it at https://www.helitour.fr/wordpress
    Looks pretty good actually, very happy with it ??
    Now going to work on integrating the french version, more fun to come!
    Thanks for your help!
    Philippe

    Hi I am having the same error, but in a different instance. The error is:

    Parse error: syntax error, unexpected $end in /home/elkgrov/public_html/wp-content/plugins/BDLive/bdlive.php on line 91

    I am not sure what this means as I am really new to php. I will submit the php cod I am working with, thanks in advance for any help you can provide. `<?php
    /*
    Plugin Name: Simple Business Directory
    Plugin URI: https://www.CityChristians.com
    Description: Plugin for displaying churches for users to browse.
    Author: J.Wood
    Version: 1.0
    Author URI: https://www.CityChristians.com
    */
    ?>

    <?php

    /* DataBase Table Creation*/
    function jal_install () {
    global $wpdb;

    $table_name = $wpdb->prefix . “sbd_BusinessName”;
    $table_name = $wpdb->prefix . “sbd_Street”;
    $table_name = $wpdb->prefix . “sbd_City”;
    $table_name = $wpdb->prefix . “sbd_State”;
    $table_name = $wpdb->prefix . “sbd_Zip”;
    $table_name = $wpdb->prefix . “sbd_Phone”;
    $table_name = $wpdb->prefix . “sbd_EMail”;
    $table_name = $wpdb->prefix . “sbd_WebAddress”;

    $sql = “CREATE TABLE ” . $table_name . ” (
    id mediumint(9) NOT NULL AUTO_INCREMENT,
    time bigint(11) DEFAULT ‘0’ NOT NULL,
    name tinytext NOT NULL,
    text text NOT NULL,
    url VARCHAR(55) NOT NULL,
    UNIQUE KEY id (id)
    );”;
    ?>

    <?php
    require_once(ABSPATH . ‘wp-admin/includes/upgrade.php’);
    dbDelta($sql);
    /* Runs when plugin is activated */
    register_activation_hook(__FILE__,’hello_world_install’);
    /* Runs on plugin deactivation*/
    register_deactivation_hook( __FILE__, ‘hello_world_remove’ );
    function hello_world_install() {
    /* Creates new database field */
    add_option(“hello_world_data”, ‘Default’, ”, ‘yes’);
    }
    function hello_world_remove() {
    /* Deletes the database field */
    delete_option(‘hello_world_data’);
    }
    add_shortcode(“bizdir_addform”,”bizdir_addform_shortcode”); //Add ShortCode for “Add Form”
    add_shortcode(“bizdir_directory”,”bizdir_directory_shortcode”); //Add ShortCode for “Directory”

    if ( is_admin() ){
    /* Call the html code */
    add_action(‘admin_menu’, ‘hello_world_admin_menu’);
    function hello_world_admin_menu() {
    add_options_page(‘Simple Business Directory’, ‘Simple Business Directory’, ‘administrator’,
    ‘hello-world’, ‘hello_world_html_page’);
    }
    }
    ?>
    <?php
    function hello_world_html_page() {
    ?>
    <div>
    <h2>Hello World Options</h2>
    <form method=”post” action=”options.php”>
    <?php wp_nonce_field(‘update-options’); ?>
    <table width=”510″>
    <tr valign=”top”>
    <th width=”92″ scope=”row”>Enter Text</th>
    <td width=”406″>
    <input name=”hello_world_data” type=”text” id=”hello_world_data”
    value=”<?php echo get_option(‘hello_world_data’); ?>” />
    (ex. Hello World)</td>
    </tr>
    </table>
    <input type=”hidden” name=”action” value=”update” />
    <input type=”hidden” name=”page_options” value=”hello_world_data” />
    <p>
    <input type=”submit” value=”<?php _e(‘Save Changes’) ?>” />
    </p>
    </form>
    </div>
    <?php
    }

    ?>`

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Syntax error, unexpected $end in’ is closed to new replies.