| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 6291|Reply: 5
Collapse the left

Access Denied ../forum.php

[Copy link]

 India

Post time: 2013-08-04 10:02
| Show all posts |Read mode
Hi, on my site I started using discuz... recently I have the floowing error message when I open my site !
  1. if($name[0] === '#') { list(e.'_'.$name; if(!isset(self::->obj = new $cname($p[1]);break; case 2:        self::$_tables[$cname]->obj = new $cname($p[1], $p[2]);break; case 3:        self::$_tables[$cname]->obj = new $cname($p[1], $p[2], $p[3]);break; case 4:        self::$_tables[$cname]->obj = new $cname($p[1], $p[2], $p[3], $p[4]);break; case 5:        self::$_tables[$cname]->obj = new $cname($p[1], $p[2], $p[3], $p[4], $p[5]);break; default: $ref = new ReflectionClass($cname);self::$_tables[$cname]->obj = $ref->newInstanceArgs($p);unset($ref);break; } } else { self::$_tables[$cname] = new $cname(); } } return self::$_tables[$cname]; } public static function memory() { if(!self::$_memory) { self::$_memory = new discuz_memory(); self::$_memory->init(self::app()->config['memory']); } return self::$_memory; } public static function import($name, $folder = '', $force = true) { $key = $folder.$name; if(!isset(self::$_imports[$key])) { /*vot*/         $path = DISCUZ_ROOT.'./source/'.$folder; if(strpos($name, '/') !== false) { $pre = basename(dirname($name)); $filename = dirname($name).'/'.$pre.'_'.basename($name).'.php'; } else { $filename = $name.'.php'; } if(is_file($path.'/'.$filename)) { self::$_imports[$key] = true; $rt = include $path.'/'.$filename; return $rt; } elseif(!$force) { return false; } else { throw new Exception('Oops! System file lost: '.$filename); } } return true; } public static function handleException($exception) { discuz_error::exception_error($exception); } public static function handleError($errno, $errstr, $errfile, $errline) { if($errno & DISCUZ_CORE_DEBUG) { discuz_error::system_error($errstr, false, true, false); } } public static function handleShutdown() { if(($error = error_get_last()) && $error['type'] & DISCUZ_CORE_DEBUG) { discuz_error::system_error($error['message'], false, true, false); } } public static function autoload($class) { $class = strtolower($class); if(strpos($class, '_') !== false) { list($folder) = explode('_', $class); $file = 'class/'.$folder.'/'.substr($class, strlen($folder) + 1); } else { $file = 'class/'.$class; } try { self::import($file); return true; } catch (Exception $exc) { $trace = $exc->getTrace(); foreach ($trace as $log) { if(empty($log['class']) && $log['function'] == 'class_exists') { return false; } } discuz_error::exception_error($exc); } } public static function analysisStart($name){ $key = 'other'; if($name[0] === '#') { list(, $key, $name) = explode('#', $name); } if(!isset($_ENV['analysis'])) { $_ENV['analysis'] = array(); } if(!isset($_ENV['analysis'][$key])) { $_ENV['analysis'][$key] = array(); $_ENV['analysis'][$key]['sum'] = 0; } $_ENV['analysis'][$key][$name]['start'] = microtime(TRUE); $_ENV['analysis'][$key][$name]['start_memory_get_usage'] = memory_get_usage(); $_ENV['analysis'][$key][$name]['start_memory_get_real_usage'] = memory_get_usage(true); $_ENV['analysis'][$key][$name]['start_memory_get_peak_usage'] = memory_get_peak_usage(); $_ENV['analysis'][$key][$name]['start_memory_get_peak_real_usage'] = memory_get_peak_usage(true); } public static function analysisStop($name) { $key = 'other'; if($name[0] === '#') { list(, $key, $name) = explode('#', $name); } if(isset($_ENV['analysis'][$key][$name]['start'])) { $diff = round((microtime(TRUE) - $_ENV['analysis'][$key][$name]['start']) * 1000, 5); $_ENV['analysis'][$key][$name]['time'] = $diff; $_ENV['analysis'][$key]['sum'] = $_ENV['analysis'][$key]['sum'] + $diff; unset($_ENV['analysis'][$key][$name]['start']); $_ENV['analysis'][$key][$name]['stop_memory_get_usage'] = memory_get_usage(); $_ENV['analysis'][$key][$name]['stop_memory_get_real_usage'] = memory_get_usage(true); $_ENV['analysis'][$key][$name]['stop_memory_get_peak_usage'] = memory_get_peak_usage(); $_ENV['analysis'][$key][$name]['stop_memory_get_peak_real_usage'] = memory_get_peak_usage(true); } return $_ENV['analysis'][$key][$name]; } } class C extends core {} class DB extends discuz_database {} Access Denied
Copy the Code
I would like to know what is causing this error message !

Discuz is a paid version ? If yes, please reffer me to the Purchase link !


 Russia

Post time: 2013-08-04 11:47
| Show all posts
Discuz is free for non-commercial use.
Purchase link: http://www.comsenz.com/purchase/discuzx

The error you have got can be because of invalid code/language
or because of wrong hosting settings.

 India

 Author| Post time: 2013-08-04 12:57
| Show all posts
vot 2013-8-4 12:47
Discuz is free for non-commercial use.
Purchase link: http://www.comsenz.com/purchase/discuzx

Previously it was on a shared hosting... recently I did everthing from scratch (Discuz) on my VPS which has only 3 more sites are being hosted. Every thing went smooth, even I made few posts too.... after two days, now I'm getting this message when I open !

Any other suggestions, where I can go and check for the possible errors....

 Russia

Post time: 2013-08-04 13:09
| Show all posts
First of all, ask help from your hosting provider.

 India

 Author| Post time: 2013-08-04 14:47
| Show all posts
vot 2013-8-4 14:09
First of all, ask help from your hosting provider.

Okay, Thanks ! I'll get back to you soon !

 India

 Author| Post time: 2013-08-05 20:52
| Show all posts
Thanks Vote ! That helped me !!

I have restarted my VPS, that fixed my issue !
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-10-06 02:12 GMT+3 , Processed in 0.060961 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list