Jump to content

flux cp errors


Lunohod

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  41
  • Reputation:   1
  • Joined:  01/29/16
  • Last Seen:  

сама ошибка 

Page Not Found

The page you have requested was not found on our server. Please check the address and make sure it is correct, and try again.

/?module=main&action=downloads

 

modules/main/download.php

<?php
if (!defined('FLUX_ROOT')) exit;
$pages = Flux::config('FluxTables.CMSPagesTable');
$path = trim($params->get('path'));

$sql = "SELECT title, body, modified FROM {$server->loginDatabase}.$pages WHERE path = ?";
$sth = $server->connection->getStatement($sql);
$sth->execute(array($path));

$pages = $sth->fetchAll();

if($pages) {
    foreach($pages as $prow) {
        $title        = $prow->title;
        $body        = $prow->body;
        $modified    = $prow->modified;
    }   
}
else {
    $this->redirect($this->url('main','index'));
}
?>
  and  themes/default/main/downloads.php

<?php if (!defined('FLUX_ROOT')) exit; ?>
<div class="heading">Downloads</div>

<li><a href="<?php something goes here?>">downloads</a>https://drive.google.com/file/d/1IuAdeK-xrrCD0tMfNjE6Z_XFfGlaXtSr/view</li>
 в чем ошибка кто может детально помочь  Спасибо заранее ...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

В отсутствии страницы downloads в main? О_о The page you have requested was not found on our server.

создай/добавь страницу downloads.php в modules/main/... и  в theme/default/main/...

Edited by Balfear
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...