Giter VIP home page Giter VIP logo

Comments (5)

dasgarner avatar dasgarner commented on June 12, 2024

Hi - that sounds like an error from the API client end, rather than the CMS end. The error is raised when whichever client you are using (php oauth from the example project?) attempts to add a server to its list of connections.

You get the error because that should only be done once when the server is first registered.

If you take a look at your client database - any clear out the oauth tables, you should be able to start fresh.

from xibo.

MichaelHoughton avatar MichaelHoughton commented on June 12, 2024

Hey Dan

Thanks for getting back to me.

The API is working in Version 1.6 and I am aware how it is meant to be working.

I dug a little deeper. This was a FRESH install of 1.7 with a new database. Basically, installed it, logged in, and set up a Application Token.

Once that is done, if you visit:
/services.php?service=rest

In the Xibo app, you get a white page, with the message:

An upgrade is pending. Visit http://URL/xibo-cms/services.php.

I checked that message, and I could see the problem is, because my upgrade.php file is there.

This was told to be added when I first installed Xibo - but nothing since told me to delete it.

The problem we have, is that the application runs with upgrade.php, but the API checks it.

Line 78 of xmds.php

if (file_exists("upgrade.php")) {
    // An upgrade is in progress. Just quit since the server
    // won't be in a servicable state
   die("An upgrade is pending. Visit " . Kit::GetURL() . ".");
}

It could be worth either removing this code, or removing the upgrade.php file after a successful install.

from xibo.

dasgarner avatar dasgarner commented on June 12, 2024

Hi Mike,

No problem - if it is a fresh installation, then we have an issue because upgrade.php has been removed in 1.7.0-rc1 (or at least it should have been). I'll have a check and see if/why it is still there - it isn't in the source any longer, that is for certain.

The internals of an upgrade in 1.7 series will be slightly different in order to provide a better user experience when upgrading (within the full CMS, by any admin user, etc).

In any case, you can safely delete that file from your root folder and hopefully that allows you to proceed.

from xibo.

MichaelHoughton avatar MichaelHoughton commented on June 12, 2024

Thanks Dan - the installer looks for it at the initial step - you can't proceed without that file being created.

Thanks again.

from xibo.

dasgarner avatar dasgarner commented on June 12, 2024

You are entirely correct - how strange that didn't show up in the test installations (there have been many)! :)

I'll modify the install environment check so that it doesn't ask for that file any longer.

from xibo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.