• You are not logged in.

[BUG] aura-1.0.0-alpha3 Install shows empty page

  • Started by dezix
  • 27 Replies
  • dezix
  • Member
  • Reputation: 1
  • Registered: 08-08-2019
  • Posts: 57

Very good news!

I've redone the all install with the last fixes,

IT WORKS!

So I think this topic about Installer is successfully ended!

Offline
  • 0
  • wimc
  • Member
  • Reputation: 8
  • From: Washington State
  • Registered: 15-06-2015
  • Posts: 72

Nice changes. Won't install, same blank screen, will wait another time though.

Offline
  • 0
  • dezix
  • Member
  • Reputation: 1
  • Registered: 08-08-2019
  • Posts: 57

@wimc

Hi!

It's not a big task to fix

in :   /include/functions.php
change (in the upper part) :

function autoloader($class){
   if (file_exists(AURA_ROOT.'include/classes/'.str_replace('\\', '/', $class).'.php'))
      require AURA_ROOT.'include/classes/'.str_replace('\\', '/', $class).'.php';
}

for :

function autoloader($class){
   $file = realpath(AURA_ROOT.'include/classes/'.str_replace('\\', '/', $class).'.php');
   if (file_exists($file))
      require $file;
}

Édit :  /include/classes/cache/cache.php
to get :

<?php/**
 * Copyright (C) 2019 Aura (https://www.get-aura.org)
 * based on code by FluxBB copyright (C) 2008-2012 FluxBB
 * License: http://www.gnu.org/licenses/gpl.html GPL version 3 or higher
 */
 
namespace cache;
use lang;
use PDO;
use Exception;
....

Give write perm to :  ./include/cache

chmod -R g+w ./include/cache

Then,
Replace this file content :   ./install/include/components/registry.php
with this code

<?phpclass registry extends stdClass
{
   protected $vars = array();
   private static $classes;

   public function &__set($index, $value)
   {
      $this->vars[$index] = $value;
      return $value;
   }

   public function &__get($index)
   {
      return $this->vars[$index];
   }

   public static function send_headers($type = 'html')
   {
      // Send no-cache headers
      header('Expires: Thu, 21 Jul 1977 07:30:00 GMT'); // When yours truly first set eyes on this world! :)
      header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
      header('Cache-Control: post-check=0, pre-check=0', false);
      header('Pragma: no-cache'); // For HTTP/1.0 compatibility

      // Send the Content-type header in case the web server is setup to send something else
      if ($type == 'html')
         header('Content-type: text/html; charset=utf-8');
      else
         header('Content-type: text/plain; charset=utf-8');

      // Prevent site from being embedded in a frame
      header('X-Frame-Options: deny');
      header('X-Powered-By: Aura');
   }

   public static function get($class)
   {
      if (!isset(self::$classes[$class]))
         self::$classes[$class] = new $class(new self());

      return self::$classes[$class];
   }
}

and finally,

in :  ./install/include/components/install.php
⇒ Suppress :  ligne 2213

exec('echo -e "`crontab -l`\n0 0 1 * * '.$current_path.'/cron.php'.'" | crontab -');

That's all !

Offline
  • 0

Users in this topic: 0 guests, 0 registered users