Jump to content

Creating REST API key error


Contato

Recommended Posts

Hi there.

Past days i have been trying to figure this problem out, but had no luck.

Does anyone here have past experience in Null IPB 4?

I am running IP BOARD 4.2.8

This is what i get, when i try to create REST-API key:

ReflectionException: Class IPS\core\api\index. does not exist (-1)
#0 /home/******/public_html/forum/system/Api/Controller.php(140): ReflectionClass->__construct('IPS\\core\\api\\in...')
#1 /home/******/public_html/forum/system/Api/Key.php(164): IPS\Api\_Controller::getAllEndpoints()
#2 [internal function]: IPS\Api\_Key->IPS\Api\{closure}(Object(IPS\Helpers\Form\Custom), Object(IPS\Helpers\Form))
#3 /home/******/public_html/forum/system/Helpers/Form/Custom.php(60): call_user_func(Object(Closure), Object(IPS\Helpers\Form\Custom), Object(IPS\Helpers\Form))
#4 /home/******/public_html/forum/system/Helpers/Form/Form.php(415): IPS\Helpers\Form\_Custom->rowHtml(Object(IPS\Helpers\Form))
#5 /home/******/public_html/forum/system/Node/Controller.php(447): IPS\Helpers\_Form->__toString()
#6 /home/******/public_html/forum/system/Dispatcher/Controller.php(85): IPS\Node\_Controller->form()
#7 /home/******/public_html/forum/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
#8 /home/******/public_html/forum/applications/core/modules/admin/applications/apiKeys.php(44): IPS\Node\_Controller->execute()
#9 /home/******/public_html/forum/applications/core/modules/admin/applications/api.php(93): IPS\core\modules\admin\applications\_apiKeys->execute()
#10 /home/******/public_html/forum/system/Dispatcher/Controller.php(85): IPS\core\modules\admin\applications\_api->__call('form', Array)
#11 /home/******/public_html/forum/system/Dispatcher/Dispatcher.php(146): IPS\Dispatcher\_Controller->execute()
#12 /home/******/public_html/forum/admin/index.php(13): IPS\_Dispatcher->run()
#13 {main}


#0 /home/******/public_html/forum/init.php(524): IPS\_Log::log('ReflectionExcep...', 'uncaught_except...')
#1 /home/******/public_html/forum/system/Helpers/Form/Form.php(428): IPS\IPS::exceptionHandler(Object(ReflectionException))
#2 /home/******/public_html/forum/system/Node/Controller.php(447): IPS\Helpers\_Form->__toString()
#3 /home/******/public_html/forum/system/Dispatcher/Controller.php(85): IPS\Node\_Controller->form()
#4 /home/******/public_html/forum/system/Node/Controller.php(62): IPS\Dispatcher\_Controller->execute()
#5 /home/******/public_html/forum/applications/core/modules/admin/applications/apiKeys.php(44): IPS\Node\_Controller->execute()
#6 /home/******/public_html/forum/applications/core/modules/admin/applications/api.php(93): IPS\core\modules\admin\applications\_apiKeys->execute()
#7 /home/******/public_html/forum/system/Dispatcher/Controller.php(85): IPS\core\modules\admin\applications\_api->__call('form', Array)
#8 /home/******/public_html/forum/system/Dispatcher/Dispatcher.php(146): IPS\Dispatcher\_Controller->execute()
#9 /home/******/public_html/forum/admin/index.php(13): IPS\_Dispatcher->run()
#10 {main}
Link to comment
Share on other sites

10 hours ago, S!r.ReaDy said:

Make sure you have the file

I do have the file actually.

You mean /api/index.php? I do have it on! With permissions.

 

This is what is inside on index.php /api

<?php
/**
 * @brief        API bootstrap
 * @author        <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
 * @copyright    (c) Invision Power Services, Inc.
 * @license       https://www.invisioncommunity.com/legal/standards/
 * @package        Invision Community
 * @since        18 Feb 2013
 */

require_once '../init.php';
\IPS\Dispatcher\Api::i()->run();

Edited by Contato
Link to comment
Share on other sites

Using this guide, update your software to the latest version and try to generate an API Key again in your AdminCP.

 

Edited by Jeffrey
  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

4 hours ago, Jeffrey said:

Using this guide, update your software to the latest version and try to generate an API Key again in your AdminCP.

 

I've done it, but when its updating it results in update error.

I cant update the version of the IPB, i've tried 4.3.0, 4.3.2. 4.3.6 and even 4.4.0 BETA.

"DOWNLOAD ERROR RETAIL" something like this.

Link to comment
Share on other sites

5 hours ago, Contato said:

I've done it, but when its updating it results in update error.

 I cant update the version of the IPB, i've tried 4.3.0, 4.3.2. 4.3.6 and even 4.4.0 BETA.

"DOWNLOAD ERROR RETAIL" something like this.

I would suggest removing all files (backup everything first database and files) then keep upload.

Update to 4.3.6 or 4.2 depending on what you are on.

Make sure your site is having correct permissions and also make sure that when you upload files that they are all intact.

If the files or the download itself is corrupt then you can get errors even though the file exists.

What PHP version are you using ?

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

6 hours ago, Cookie Monster said:

I would suggest removing all files (backup everything first database and files) then keep upload.

Update to 4.3.6 or 4.2 depending on what you are on.

Make sure your site is having correct permissions and also make sure that when you upload files that they are all intact.

If the files or the download itself is corrupt then you can get errors even though the file exists.

What PHP version are you using ?

I am using PHP 5.4.

Ip Board 4.2.8

The system just doesnt  allow me to finish the Update.

Always come up with errors.

 

Screenshot_1.jpg

Edited by Contato
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...