Skip to:
Content
Pages
Categories
Search
Top
Bottom

Undefined Fucntion_e() problem.

  • Fatal error: Call to undefined function: _e() in /home/virtual/site122/fst/var/www/html/bbpress/bb-admin/install.php on line 17

    Here’s my config:

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘edited’); // The name of the database

    define(‘BBDB_USER’, ‘out’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘ok’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://www.cjgavin.com&#8217;; // Example: ‘http://bbpress.example.com&#8217;

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/bbpress/’; // Example: ‘/forums/’

    // What are you going to call me?

    $bb->name = ‘CJGAVIN.com’;

    // This must be set before running the install script.

    $bb->admin_email = ‘edited@out.com’;

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = false;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 0;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = false;

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave the rest as it is.

    // $bb->wp_table_prefix = false; // WordPress table prefix. Example: ‘wp_’;

    // $bb->wp_home = ‘http://www.cjgavin.com&#8217;; // WordPress – Options->General: Blog address (URL) // No trailing slash

    // $bb->wp_siteurl = ‘http://www.cjgavin.com&#8217;; // WordPress – Options->General: WordPress address (URL) // No trailing slash

    /* Stop editing */

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

    I get this error even if I dont comment out the wp integration stuff.

    I have no idea why, I have checked to make sure the permissions are correct.

    It isnt working and I dont know why – more worrying – I can’t find anyone else who’s experienced this issue.

Viewing 9 replies - 1 through 9 (of 9 total)

  • chrishajer
    Participant

    @chrishajer

    When I go here:

    http://www.cjgavin.com/bbpress/

    I get this:

    There doesn't seem to be a config.php file. I need this before we can get started. Open up config-sample.php, fill in your details, and save it as config.php.

    Did you rename config-sample.php to config.php?

    When I try to load config-sample.php directly, I get this error:

    Parse error: syntax error, unexpected ':' in /home/virtual/site122/fst/var/www/html/bbpress/config-sample.php on line 53

    Maybe that colon is related to one of the wp_ URL lines (URLs must be quoted.)

    Hang in there: you’re close.

    I took the config down because it was publishing the entire file before the function error – ie all my passwords were freely advertised! :)

    Anyway I tried again with a fresh config:

    http://www.cjgavin.com/bbpress/bb-admin/install.php

    Parse error: syntax error, unexpected T_VARIABLE in /home/virtual/site122/fst/var/www/html/bbpress/config.php on line 53

    Better than undefined function. :)

    (line 53) $bb->wp_home = ‘http://www.cjgavin.com&#8217;; // WordPress – Options->General: Blog address (URL) // No trailing slash

    Whats wrong with that??

    Lines 52 > 54:

    $bb->;wp_table_prefix = ‘wp_;’

    $bb->;wp_home = ‘http://www.cjgavin.com&#8217;;

    $bb->;wp_siteurl = ‘http://www.cjgavin.com&#8217;;

    I edited them all to FALSE

    now I get!

    Parse error: syntax error, unexpected T_STRING in /home/virtual/site122/fst/var/www/html/bbpress/config.php on line 58

    !!

    What the heck?!

    I’ve installed hundreds of php/sql portals and boards before and never had anything like this.

    You guys could do a lot worse than just put together a complete php install script where you fill in the fields interactively ..

    The amount of time I have to waste with this sort of stuff really affects my software selection. I could have installed PhPBB a hundred times over already.

    Line 58 is:

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    Nevermind, I fixed it.

    Just kidding.

    I hate it when people dont post how. :)

    I left a ‘ in there after editing the config. It was unattached to anything.

    Hence the error.

    Again ^ re-iterating my suggestion that you take away the config editing at least superficially (ie you can if you really must) and have it as fields in a PHP form so you cant f*** it up.


    chrishajer
    Participant

    @chrishajer

    Glad you fixed it.

    edit: you’re going to want to look at this thread to fix the freshness -1 years problem on your forum.

    https://bbpress.org/forums/topic/147?replies=11

    Hmm. Let me have a look ..


    chrishajer
    Participant

    @chrishajer

    Also, the config.php editing thing was addressed for version .74 here:

    https://trac.bbpress.org/ticket/477

    <strong>Description</strong>

    There are many common errors made when editing config.php.

    We can check for these errors prior to installation refuse to install if things are out of whack.

    It’s not an install script, but it does at least validate the config. It won’t prevent the errors but it will catch them.

    Fun fun fun.

    :)

    Right, cant fix the timezone as I have no idea what time zone it is in. Its 3000 miles away.

    Cant be bothered with this – clicking a topic redirects me to my WordPress homepage? Eh?

    Then it says the admin user I created and logged in as 10 mins ago doesnt exhist anymore. Riight.

    Think I’ll stick with something more mature.

    See you when bbpress gets there init. ;)

    Thanks again, but I dont have anymore time to waste ..

    I just spunked 3 hrs on this! Thats more than enough ..

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar