This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

500 error at sentora main account
#4
RE: 500 error at sentora main account
Hi guys thank you so much for helping out with this. Well Me.B I did not change files directory names, seams that my script is doing that.

Let me show you guys something. This is my _init.php file i believe that i can make something here to get this working like a full path replacing the ROOT by another code. i want you all to take a look.

PHP Code:
<?php defined('CMS_ACCESS') or die('No direct script access.');

if (
version_compare(PHP_VERSION"5.3.0""<")) {
    exit("System requires PHP 5.3.0 or greater.");
}

/** Include Engine */
include ROOT DS .'engine'DS .'MyCMS.php';

MyCMS::$environment MyCMS::PRODUCTION;

if (
MyCMS::$environment == MyCMS::PRODUCTION) {
    error_reporting(0); 
} else {
    error_reporting(-1);
}

MyCMS::init(); 

TGates, yes i must agree. Also there i found another file that indeed comes with that:

PHP Code:
public static function parseVariables($frontend_buffer)
    {
        return str_replace(array('@site_url',
                                 '@theme_site_url',
                                 '@theme_admin_url'),
                           array(Option::get('siteurl'),
                                 Option::get('siteurl').'/public/themes/'.Option::get('theme_site_name'),
                                 Option::get('siteurl').'/admin/themes/'.Option::get('theme_admin_name')),
                           $frontend_buffer);
    

When i go to my website as domain.com/admin i get the 500 Error. On frontview it works but does not make the connection with some items from the system such as images locations (some), icons (fontawsome).

PHP Code:
$site_url  Option::get('siteurl');


// Edit settings
            // -------------------------------------
            if (Request::post('edit_settings')) {

                if (Security::check(Request::post('csrf'))) {

                    // Add trailing slashes
                    $_site_url Request::post('system_url');

                    Option::update(array('sitename'          => Request::post('site_name'),
                                       'keywords'            => Request::post('site_keywords'),
                                       'description'         => Request::post('site_description'),
                                       'slogan'              => Request::post('site_slogan'),
                                       'defaultpage'         => Request::post('site_default_page'),
                                       'siteurl'             => $_site_url,
                                       'timezone'            => Request::post('system_timezone'),
                                       'system_email'        => Request::post('system_email'),
                                       'language'            => Request::post('system_language'),
                                       'maintenance_message' => Request::post('site_maintenance_message')));

                    Notification::set('success'__('Your changes have been saved.''system'));
                    Request::redirect('index.php?id=system');

                } else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
            }

            // Its mean that you can add your own actions for this plugin
            Action::run('admin_system_extra_actions');

            // Display view
            View::factory('box/system/views/backend/index')
                    ->assign('pages_array'$pages_array)
                    ->assign('languages_array'$languages_array)
                    ->display();

        } else {

            Request::redirect('index.php?id=users&action=edit&user_id='.Session::get('user_id'));
        


Can anyone help me? I am kinda blank on ideas here, Thanks in advance.
'' Life is full of important choices ''
Help Sentora Donate now => http://sentora.org/donate Blush
Reply
Thanks given by:


Messages In This Thread
RE: 500 error at sentora main account - by Me.B - 11-20-2016, 07:14 AM
RE: 500 error at sentora main account - by TGates - 11-20-2016, 07:35 AM
RE: 500 error at sentora main account - by wormsunited - 11-20-2016, 09:04 AM
RE: 500 error at sentora main account - by TGates - 11-20-2016, 09:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Can anyone suggest best Sentora alternative servermaster 1 1 ,280 12-22-2023, 10:41 AM
Last Post: TGates
Sentora 2.0 Beta Ron-e 6 14 ,350 01-01-2022, 11:56 AM
Last Post: TGates
Can not access Sentora ThomasMoss 4 8 ,024 01-01-2022, 10:41 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)