Results 1 to 8 of 8

Thread: Undefined variable Errors on localhost

  1. #1
    Senior Member
    Join Date
    Sep 2009
    Posts
    429
    Thanks
    159
    Thanked 54 Times in 41 Posts

    Default Undefined variable Errors on localhost

    I'm getting the following errors while installing on my localhost (wamp server with its default settings). I however do not get these errors on my test site though (shared server)

    Step 4 of installation:
    Notice: Undefined variable: lang in C:\wamp\www\libs\Hotaru.php on line 281
    Line 281 of libs\Hotaru.php is:

    PHP Code:
            if ($lang) {
                foreach(
    $lang as $l => $text) {
                    
    $this->lang[$l] = $text;
                }
            }
        } 
    When I deliberately move on with the installation and go to the admin page, the following error message is displayed.
    Notice: Undefined variable: folder in C:\wamp\www\libs\Admin.php on line 56
    Line 56-63 of libs\Admin.php is:
    PHP Code:
            if ($folder) { 
                
    $this->folder $folder
            }

            if (
    $entrance != 'admin') { return false; } 

            
    $this->adminInit($entrance);
        } 
    Also, here are the database settings for hotaru_settings.php on my local machine.



    Dumb question, could it because I'm on localhost? :-/

  2. #2
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    481
    Thanked 806 Times in 526 Posts

    Default

    It's because you have a different version of PHP on your localhost, probably a newer one. Have a go with the 0.9 SVN branch. I've been fixing some of these errors on that branch, but there may be more.

    http://my-svn.assembla.com/svn/HotaruCMS/branches/0.9/

  3. #3
    Senior Member
    Join Date
    Sep 2009
    Posts
    429
    Thanks
    159
    Thanked 54 Times in 41 Posts

    Default

    Quote Originally Posted by Nick View Post
    It's because you have a different version of PHP on your localhost, probably a newer one. Have a go with the 0.9 SVN branch. I've been fixing some of these errors on that branch, but there may be more.
    Oh, thanks Nick. BTW, here's the server configuration on my localhost:
    Apache Version: 2.2.11
    PHP Version : 5.3.0
    MySQL Version : 5.1.36

  4. #4
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    481
    Thanked 806 Times in 526 Posts

    Default

    Right. We're hoping to make Hotaru compatible with PHP 5.3.0 by Christmas.

    Keep an eye on the Assembla stream for updates. Unless otherwise stated, they are on 0.9:
    http://www.assembla.com/spaces/HotaruCMS/stream

  5. #5
    Senior Member
    Join Date
    Sep 2009
    Posts
    429
    Thanks
    159
    Thanked 54 Times in 41 Posts

    Default

    Aight. I'm currently playing with the 0.9 trunk. I don't know if its to early and sorry for being a nit-pick but installing the plugins is taking a longg time.

  6. #6
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    481
    Thanked 806 Times in 526 Posts

    Default

    Maybe you are having the same problems I was?

    If so, try PHP 5.2.11.

  7. #7
    Senior Member
    Join Date
    Sep 2009
    Posts
    429
    Thanks
    159
    Thanked 54 Times in 41 Posts

    Default

    Perfect! Installing PHP 5.2.11 solved the slow page load (Apologies, I never even once looked at the wamp server thread as I thought I'd never need it) . Where's the Thanks button?
    Last edited by nothingman; 12-05-2009 at 03:11 PM.

  8. #8
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,869
    Blog Entries
    88
    Thanks
    481
    Thanked 806 Times in 526 Posts

    Default

    Phew! The Thanks button will be back once that vBulletin plugin has been updated for vBulletin 4 (these forums are in beta right now and a bit buggy).

    You might need to edit your php.ini file for a couple of things to work. For example, remove the semi-colon before:

    PHP Code:
    ;extension=php_curl.dll 
    And I'm having trouble with the Pligg Importer in 0.9, probably because some of those memory/upload/size settings in php.ini got reset when I changed PHP version, so look out for those. I'm off to bed.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Bookmarks

Posting Permissions

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