We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

blank white page after semi successful install of Oxwall [Answered] | Forum

Raul Perez
Raul Perez Sep 19 '13
Hello everyone,
 
                       I installed a new version of Oxwall into my servervia ftp. And after what seemed to be a successful install...I get a complete blank page.

my hosting provider says that I needed to upload the Index file. which was confusing because filezilla said that all files were uploaded correctly.

I configured cron jobs correctly and made sure the permissions were correct on plugins and that htaccess was existent. My database has no issues and Im getting no error messages at all.

oxwall was uploaded to the site itself and is not a subdirectory.

Just a blank page.
Does anyone know the fix to this or have any idea why this would be?
The Forum post is edited by ross Nov 19 '13
Alia Team
Alia Sep 19 '13
1. Can you provide screen shot of your config.php? ( you can PM this to me)
2. Can you check your server's error logs? What are the latest ones?
3. Enable DEBUG mode just in case.
Raul Perez
Raul Perez Sep 20 '13
I didn't know which line you wanted to see. i didnt even touch the config file. but I don't know what happened. it was the first time that ever happened with a script. Not even Boonex did it..and they suck! LOL

I like Oxwall better and I hope to get this going.

Heres whats on my config file:

class OW_Config
{
    /**
     * @var BOL_ConfigService
     */
    private $configService;
    /**
     * @var array
     */
    private $cachedConfigs;

    /**
     * Constructor.
     */
    private function __construct()
    {
        $this->configService = BOL_ConfigService::getInstance();

        $this->generateCache();
    }
    /**
     * Singleton instance.
     *
     * @var OW_Config
     */
    private static $classInstance;

    /**
     * Returns an instance of class (singleton pattern implementation).
     *
     * @return OW_Config
     */
    public static function getInstance()
    {
        if ( self::$classInstance === null )
        {
            self::$classInstance = new self();
        }

        return self::$classInstance;
    }

    public function generateCache()
    {
        $configs = $this->configService->findAllConfigs();

        /* @var $config BOL_Config */
        foreach ( $configs as $config )
        {
            if ( !isset($this->cachedConfigs[$config->getKey()]) )
            {
                $this->cachedConfigs[$config->getKey()] = array();
            }

            $this->cachedConfigs[$config->getKey()][$config->getName()] = $config->getValue();
        }
    }

    /**
     * Returns config value for provided plugin key and config name.
     *
     * @param string $key
     * @param string $name
     * @return string|null
     */
    public function getValue( $key, $name )
    {
        return ( isset($this->cachedConfigs[$key][$name]) ) ? $this->cachedConfigs[$key][$name] : null;
    }

    /**
     * Returns all config values for plugin key.
     *
     * @param string $key
     * @return array
     */
    public function getValues( $key )
    {
        return ( isset($this->cachedConfigs[$key]) ) ? $this->cachedConfigs[$key] : array();
    }

    /**
     * Adds plugin config.
     *
     * @param string $key
     * @param string $name
     * @param mixed $value
     */
    public function addConfig( $key, $name, $value, $descripton = null )
    {
        $this->configService->addConfig($key, $name, $value, $descripton);
        $this->generateCache();
    }

    /**
     * Deletes config by provided plugin key and config name.
     *
     * @param string $key
     * @param string $name
     */
    public function deleteConfig( $key, $name )
    {
        $this->configService->removeConfig($key, $name);
        $this->generateCache();
    }

    /**
     * Removes all plugin configs.
     *
     * @param string $key
     */
    public function deletePluginConfigs( $key )
    {
        $this->configService->removePluginConfigs($key);
    }

    /**
     * Checks if config exists.
     *
     * @param string $key
     * @param string $name
     * @return boolean
     */
    public function configExists( $key, $name )
    {
        return array_key_exists($key, $this->cachedConfigs) && array_key_exists($name, $this->cachedConfigs[$key]);
    }

    /**
     * Updates config value.
     *
     * @param string $key
     * @param string $name
     * @param mixed $value
     */
    public function saveConfig( $key, $name, $value )
    {
        $this->configService->saveConfig($key, $name, $value);
        $this->generateCache();
    }
}
Raul Perez
Raul Perez Sep 20 '13
Also this comes up on the blank page now:

Warning: require_once(/home/weshuldc/ow_includes/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/weshuldc/public_html/index.php on line 29

Fatal error: require_once() [function.require]: Failed opening required '/home/weshuldc/ow_includes/config.php' (include_path='.:/usr/lib/php') in /home/weshuldc/public_html/index.php on line 29
Alia Team
Alia Sep 25 '13
Raul,  you pasted wrong content:
Here is the path to correct config.php:

weshuldc/ow_includes/config.php

Can you PM what you have there?
Are you sure that Oxwall is installed in the root directory?
ross Team
ross Nov 19 '13
Raul,  you pasted wrong content:
Here is the path to correct config.php:

weshuldc/ow_includes/config.php

Can you PM (Ross) what you have there?
Are you sure that Oxwall is installed in the root directory?
Raul Perez
Raul Perez Dec 8 '13
Id like to Know if oxwall can be installed as a subdirectory. I did have it on the root. But I think i need it as a subdirectory.
Eric
Eric Dec 8 '13
Yes. When I was testing it to see if I liked it, I ran it out of a subdirectory with no issues.