Jump to content

Mr World

Members
  • Posts

    45
  • Joined

  • Last visited

 Content Type 

Downloads

Release Notes

IPS4 Guides

IPS4 Developer Documentation

Invision Community Blog

Development Blog

Deprecation Tracker

Providers Directory

Forums

Events

Store

Gallery

Everything posted by Mr World

  1. In forum/admin/?app=core&module=bulkmail&controller=bulkmail&do=preview&id=27 How do I go about updating this to threads I want?
  2. I keep getting runesuite.io redirected you too many times. Even though the PHP version is 8.1.
  3. mass delete avatars and set default avatars for all?
  4. here is the class that communicates with the InvisionAPI. It has been curated to avoid any sensitive info exposed <?php /** * Here is the full class that communicates with the InvisionAPI * */ class InvisionAPI { private static $instance; public static function getInstance() { if (self::$instance == null) { self::$instance = new InvisionAPI(); } return self::$instance; } private $settings; private $database; private $session; public function __construct() { $this->refreshSession(); $this->session = \IPS\Session\Front::i(); $this->database = \IPS\Db::i(); $this->settings = \IPS\Settings::i(); } /** * Refreshes our IPS session, if we ever had one. * Required if for some reason our session has timed out and we have yet to revisit the suite. */ public function refreshSession() { $this->requireIPS(); \IPS\Session\Front::i(); } public function isGuest($member) { return $member->member_group_id == $this->settings->guest_group; } /** * Returns the current logged in user * This method is called when I access after login form, it always returns Guest! * @return null */ public function getCachedMember() { $this->refreshSession(); $member = \IPS\Member::loggedIn(); if ($this->isGuest($member)) { return null; } return new InvisionMember($member); } public function loadMember($username) { $member = \IPS\Member::load($username, 'name'); if ($this->isGuest($member)) { return null; } return $member; } /** * This returns true when user/pass is OK so I know it works! */ public function login($username, $password, $rememberMe = false) { $member = $this->loadMember($username); if ($member == null) { return null; } if (!$this->verifyPassword($member, $password)) { return false; } $this->setSession($member, $rememberMe); return true; } public function logout() { $member = $this->getCachedMember(); if ($member == null) { return; // We are already logged out } session_destroy(); \IPS\Request::i()->clearLoginCookies(); $member->memberSync('onLogout', array(\IPS\Http\Url::internal(''))); } /** * Sets the user session after use has been verified. * @param $member * @param $rememberMe */ public function setSession($member, $rememberMe) { $this->session->setMember($member); $device = \IPS\Member\Device::loadOrCreate($member); $member->last_visit = $member->last_activity; $member->save(); $device->anonymous = false; $device->updateAfterAuthentication($rememberMe, null); $member->memberSync('onLogin'); $member->profileSync(); /** * If I do a test here, it fails, I get guest! * $member = \IPS\Member::loggedIn(); */ } public function verifyPassword($member, $password) { return password_verify($password, $member->members_pass_hash) === true; } private function requireIPS() { require_once FORUM_PATH . 'init.php'; } }
  5. A bit of API testing first to know it's working: \IPS\Member::load('some_username', 'name'); //works as expected, I get the user \IPS\Member::load($member_id, 'member_id'); //works as expected, I get the user Authenticating a user via the API: $session = \IPS\Session\Front::i(); $session->setMember($member); $member = \IPS\Member::load('username', 'name'); $device = \IPS\Member\Device::loadOrCreate($member); $device->anonymous = false; $device->updateAfterAuthentication($rememberMe, null); $member->memberSync('onLogin'); $member->profileSync(); At this point, if I visit the forum, I see that I am logged in as the user so the authentication works. But, if I do a $member = \IPS\Member::loggedIn(); I get guest, regardless if I do the call right after authentication or after page refresh. Any idea on what am I missing here?
  6. Turns out (BIM) Hide Link And Code plugin is slightly broken. Sigh.
  7. I can't log into the admin control forums to disable it how to disable all plugins via PHP likely in constants or conf_global?
  8. Declaration of IPS\\forums\\Topic\\hook648::truncated($oneLine = false) must be compatible with IPS\\_Content::truncated($oneLine = false, $length = 500) in /home/runesu/public_html/init.php(902) : eval()'d code on line 240
  9. Went into /public_html/applications deleted the directory links seems to of solved my issues.
  10. Cause I can't go into upgrade and add the license... I uploaded this brand new as well all old files replaced, what to do?
  11. Why don't we have a discord? A lot of hosting companies and major games have it. Why can't we?
  12. home/runesu/public_html/applications/links/sources/Link/Link.php on line 1569, referer: https://runesuite.io/admin/upgrade/?controller=upgrade&key= [Wed Sep 29 13:30:06.492184 2021] [:error] [pid 13639:tid 139695933540096] [client 156.146.34.35:57468] PHP Fatal error: Declaration of IPS\\links\\_Link::contentImages($limit = null) must be compatible with IPS\\Content\\_Item::contentImages($limit = null, $ignorePermissions = false) in /home/runesu/public_html/applications/links/sources/Link/Link.php on line 1569, referer: https://runesuite.io/admin/upgrade/?controller=upgrade&key= Any ideas on this at all?
  13. array_keys(): Argument #1 ($array) must be of type array, null given
  14. [Tue Sep 28 13:45:59.307545 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] PHP Fatal error: Declaration of IPS\\Http\\Url\\cms_hook_FriendlyUrl::setFriendlyUrlData($seoTemplate, $seoTitles, $matchedParams, $friendlyUrlComponent) must be compatible with IPS\\Http\\Url\\_Friendly::setFriendlyUrlData($seoTemplate, $seoTitles, $matchedParams = [], string $friendlyUrlComponent = '') in /home/runesu/public_html/init.php(902) : eval()'d code on line 120 [Tue Sep 28 13:45:59.307630 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] PHP Fatal error: Uncaught Error: Class "IPS\\Http\\Url\\Friendly" not found in /home/runesu/public_html/system/Http/Url.php:274 [Tue Sep 28 13:45:59.307639 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] Stack trace: [Tue Sep 28 13:45:59.307678 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] #0 /home/runesu/public_html/init.php(902) : eval()'d code(25): IPS\\Http\\_Url::createFromString() [Tue Sep 28 13:45:59.307718 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] #1 /home/runesu/public_html/system/Request/Request.php(275): IPS\\Http\\cms_hook_Url::createFromString() [Tue Sep 28 13:45:59.307754 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] #2 /home/runesu/public_html/system/Session/Front.php(363): IPS\\_Request->url() [Tue Sep 28 13:45:59.307776 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] #3 [internal function]: IPS\\Session\\_Front->write() [Tue Sep 28 13:45:59.307797 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] #4 [internal function]: session_write_close() [Tue Sep 28 13:45:59.307803 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] #5 {main} [Tue Sep 28 13:45:59.307832 2021] [:error] [pid 9096:tid 139755677214464] [client 223.206.220.233:33150] thrown in /home/runesu/public_html/system/Http/Url.php on line 274
  15. They say strict SSL was the main cause of the issue. I'm not sure why. Enable flexible SSL for Cloudflare any future issue users farewell IPS community
  16. Edit, He has fixed the issue. Awaiting response on what magic he used
  17. Edit, He has fixed the issue. Awaiting response on what magic he used
  18. The plugin is disabled and still out putting the same error message. What's worse is I've got now 4 days downtime and they blame SSL for being the issue?????????? Oh my lord.
  19. Again you aren't even paying attention to the ticket. It clearly is the issue. If you edit the thread I listed in the ticket it causes this exact error. And if you even looked through the applications you would see they are all disabled? I am at 3 days almost 4 days downtime. I can not afford another day. Paying for any useful advice at this point.
  20. Found the core error Error: ErrorException: template_store_missing in /home/dreamsca/public_html/forum/system/Theme/Theme.php:838 Stack trace: #0 /home/dreamsca/public_html/forum/system/Theme/Theme.php(860) : eval()'d code(2522): IPS\_Theme->getTemplate() #1 /home/dreamsca/public_html/forum/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->postContainer() #2 /home/dreamsca/public_html/forum/system/Theme/Theme.php(860) : eval()'d code(4856): IPS\Theme\_SandboxedTemplate->__call() #3 /home/dreamsca/public_html/forum/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->topic() #4 /home/dreamsca/public_html/forum/applications/forums/modules/front/forums/topic.php(459): IPS\Theme\_SandboxedTemplate->__call() #5 /home/dreamsca/public_html/forum/system/Dispatcher/Controller.php(101): IPS\forums\modules\front\forums\_topic->manage() #6 /home/dreamsca/public_html/forum/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #7 /home/dreamsca/public_html/forum/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #8 /home/dreamsca/public_html/forum/system/Dispatcher/Dispatcher.php(152): IPS\forums\modules\front\forums\_topic->execute() #9 /home/dreamsca/public_html/forum/index.php(13): IPS\_Dispatcher->run() #10 {main} in /home/dreamsca/public_html/forum/system/Theme/SandboxedTemplate.php:65 Stack trace: #0 /home/dreamsca/public_html/forum/system/Theme/Theme.php(860) : eval()'d code(4856): IPS\Theme\_SandboxedTemplate->__call() #1 /home/dreamsca/public_html/forum/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->topic() #2 /home/dreamsca/public_html/forum/applications/forums/modules/front/forums/topic.php(459): IPS\Theme\_SandboxedTemplate->__call() #3 /home/dreamsca/public_html/forum/system/Dispatcher/Controller.php(101): IPS\forums\modules\front\forums\_topic->manage() #4 /home/dreamsca/public_html/forum/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #5 /home/dreamsca/public_html/forum/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #6 /home/dreamsca/public_html/forum/system/Dispatcher/Dispatcher.php(152): IPS\forums\modules\front\forums\_topic->execute() #7 /home/dreamsca/public_html/forum/index.php(13): IPS\_Dispatcher->run() #8 {main}
  21. I went through PHP error logs nothing. If I do the following; Edit a large thread Change the theme Edit the CSS of a theme This page isn’t working dreamscape317.net didn’t send any data.ERR_EMPTY_RESPONSE This error happens every time these actions are performed. I have made uploads writable, nothing in error php logs IPS shows this logs, all plugins, app disabled. Importing ISP default theme cause of the 504/520 error it's throwing the theme settings aren't loading (font size/colours and a few others causing the issues)
  22. I have priority support and a high traffic forum. I have waited almost three days for a response. I am at my limit. I think I might move to xenforo this is beyond a joke. I pretty much represent a huge gaming scene. I know if I moved at least 300 will follow due to the fact they want to follow the biggest. That’s a lot of income to lose for a business. if you are listening please help me I can’t afford to lose more downtime. Three days is to much!!!!
Ă—
Ă—
  • Create New...