Can't install on Xampp localhost Windows

Lewis Button Posted in Technical Support 9 years ago

Hello, when I install and click the Finish button I get this message:

Warning: Invalid argument supplied for foreach() in C:xampphtdocssocialossnclassesOssnSite.php on line 36

Notice: Undefined variable: result in C:xampphtdocssocialossnclassesOssnSite.php on line 39

Those lines contain this (starting at line 28):

    /**
 * Get all site settings
 *
 * @return object
 */
public function getAllSettings() {
    $params['from'] = 'ossn_site_settings';
    $this->settings = $this->select($params, true);
    foreach ($this->settings as $setting) {
        $result[$setting->name] = $setting->value;
    }
    return arrayObject($result, get_class($this));
}

I would appreciate any help provided. Thanks.

Replies
Bulgarian Ivailo Mladenov Replied 5 years ago

Hello i also can't install OSSN on xamp
my xampp version is 3.2.4
https://i.imgur.com/nmaIgAG.png
https://i.imgur.com/KigVJiT.png
i created db user ossn but still can't install it

German Michael Zülsdorff Replied 9 years ago

Yeah,
as already expected: no table-row, no data. And that means: no Ossn. :(

Looks like a compatibility issue between MariaDB and MySQL. Thus, if your intention was just getting a quick first idea of Ossn, refer to the REALLY tested prerequisites at https://www.opensource-socialnetwork.org/wiki/view/706/how-to-install-open-source-social-network and get yourself a different Xamp which complies with the listed items.

At least I have no time digging deeper into what's going wrong. Sorry.

gb Lewis Button Replied 9 years ago

I am using PHP version 7.0.3 and 10.1.10-MariaDB.

And for the table, I don't think it worked:
What do I need a description for?

However, other tables, like ossn_users are populated correctly.

German Michael Zülsdorff Replied 9 years ago

1.) There are thousends of different xamps:
Please provide the versions of
PHP and MySQL

2.) If $this->settings is really unset, accessing the db table ossn_site_settings seems to have failed. So please before clicking "Finish", open another browser window with PHPMyAdmin and check whether this table has been created at all and comes with reasonable values.