Jump to content

Recommended Posts

Posted
Help with CentOS I'm having this problem when i try to access Flux
 Warning: fopen(data/tmp/ConfigServers.cache.php): failed to open stream: Permission denied in /usr/html/cp/lib/Flux.php on line 275 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux.php on line 276 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux.php on line 277 Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux.php on line 278 Critical Error An error was encountered during the lifetime of the application. This could be due to a variety of problems, such as a bug in the application. However, normally it is caused by misconfiguration. Exception Details Error: Flux_PermissionError Message: The log storage directory '/usr/html/cp/data/logs' is not writable. Remedy with `chmod 0600 /usr/html/cp/data/logs` File: /usr/html/cp/index.php:125 

already tried running chmod 0600 /usr/html/cp/data/logs on the terminal.

Just chmod to 755/777

Posted

Getting this one:

Warning: fopen(data/tmp/ConfigServers.cache.php): failed to open stream: Permission denied in /usr/html/cp/lib/Flux.php on line 275 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux.php on line 276 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux.php on line 277 Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux.php on line 278
=(
Posted

Getting this one:

Warning: fopen(data/tmp/ConfigServers.cache.php): failed to open stream: Permission denied in /usr/html/cp/lib/Flux.php on line 275 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux.php on line 276 Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux.php on line 277 Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/html/cp/lib/Flux.php on line 278
=(

You need to create a new topic in support. I'll help you when you do that.

  • 1 month later...
  • 1 month later...
  • 3 months later...
  • 1 month later...
Posted

Haven there are plenty of people that do paid visual designs for the FluxCP. As for redesigning the rest of it, Xantara is a goddess in her field!!! She has done excellent work on my control panel!

Peopleperson49

  • Upvote 1
  • 5 months later...
Posted

Item and mob DB list not show. Before it shows up but the vote for points not show. I fixed the vote for points and now the item/mob db is my problem. /oops

  • 6 months later...
Posted

Tried updating my flux guild ranking.. And i got this error.. Help pls. 

Fatal error: Call to a member function toArray() on a non-object in /home/modules/ranking/guild.php on line 6

ranking/guild.php
<?php
if (!defined('FLUX_ROOT')) exit;

$title = 'Guild Ranking';

$castleNames = Flux::config('CastleNames')->toArray();
$ids = implode(',', array_fill(0, count($castleNames), '?'));

$col  = "g.guild_id, g.name, g.guild_lv, g.average_lv, g.emblem_len, ";
$col .= "GREATEST(g.exp, (SELECT SUM(exp) FROM {$server->charMapDatabase}.guild_member WHERE guild_member.guild_id = g.guild_id)) AS exp, ";
$col .= "(SELECT COUNT(char_id) FROM {$server->charMapDatabase}.`char` WHERE `char`.guild_id = g.guild_id) AS members, ";
$col .= "(SELECT COUNT(castle_id) FROM {$server->charMapDatabase}.guild_castle WHERE guild_castle.guild_id = g.guild_id AND castle_id IN ($ids)) AS castles";

$sql  = "SELECT $col FROM {$server->charMapDatabase}.guild AS g ";
$sql .= "LEFT JOIN {$server->charMapDatabase}.`char` AS ch ON ch.char_id = g.char_id ";
$sql .= "LEFT JOIN {$server->loginDatabase}.login ON login.account_id = ch.account_id ";
$sql .= "WHERE login.level < ? ";
$sql .= "ORDER BY g.guild_lv DESC, castles DESC, exp DESC, (g.average_lv + members) DESC, ";
$sql .= "g.average_lv DESC, members DESC, g.max_member DESC, g.next_exp ASC ";
$sql .= "LIMIT ".(int)Flux::config('GuildRankingLimit');
$sth  = $server->connection->getStatement($sql);

$sth->execute(array_merge(array_keys($castleNames), array((int)Flux::config('RankingHideLevel'))));
$guilds = $sth->fetchAll();
?>
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...