Announcement

#1 2023-04-19 00:35:12

Jan Becket
Member
2015-01-17
41

Missing API Handler, whatever that is ...

Hello,

I have suddenly become unable to log in to my Piwigo hosting server through the Lightroom Piwigo Export plugin, which I have used for over a decade. It was working fine two weeks ago, but when I tried to upload some additional images to my site, I found that the upload information fields were blank. When i filled them in, I got the puzzling message, "API Handler Missing" below that was the additional information "Unable to access your Piwigo hosting service. ws.php API script missing."

My hosting service does not know what that message means and says it is nothing on their end. Is this 1) A Piwigo Export Plugin issue? 2) A Lightroom Classic issue? 3) A Piwigo issue?

Iʻd much appreciate some info on what is an API Handler and where I might begin to troubleshoot.

Thanks,
Jan B.

Piwigo 13.6.0 Check for upgrade
Installed on 17 January 2015, 8 years 3 months 1 day ago
Operating system: Linux
PHP: 7.4.33 (Show info) [2023-04-18 22:23:22]
MySQL: 5.5.5-10.2.44-MariaDB-log [2023-04-18 15:23:22]
Graphics Library: ImageMagick 6.9.10-68
Cache size 1106.57 Mo   calculated 1 month ago

Piwigo URL: http://janbecket.net/piwigo

Offline

 

#2 2023-04-19 02:55:03

erAck
Only trying to help
2015-09-06
2129

Re: Missing API Handler, whatever that is ...

There should be a file ws.php in your Piwigo directory that registers the API methods with the web service and seems to be missing (or not accessible by the web server).


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2023-04-19 03:59:15

Jan Becket
Member
2015-01-17
41

Re: Missing API Handler, whatever that is ...

Yes, the file is there, in my Piwigo directory. It looks like a text file that contains various settings. Where do you suggest I go from here?

Offline

 

#4 2023-04-19 13:44:41

OHappyDay
Member
2023-02-08
84

Re: Missing API Handler, whatever that is ...

If you are saying a "text" file with various settings this sounds strange.

The file should start like below. If this is not the case something is broken in your piwigo installation.


<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo.                                          |
// |                                                                       |
// | For copyright and license information, please view the COPYING.txt    |
// | file that was distributed with this source code.                      |
// +-----------------------------------------------------------------------+

define ('PHPWG_ROOT_PATH', './');
define ('IN_WS', true);

Offline

 

#5 2023-04-19 13:51:17

erAck
Only trying to help
2015-09-06
2129

Re: Missing API Handler, whatever that is ...

It should simply be this file https://github.com/Piwigo/Piwigo/blob/13.x/ws.php
If you point your browser to your instance's ws.php, the result should be something like

Code:

<rsp stat="fail">
<err code="501" msg="Missing "method" name"/>
</rsp>

And apparently it is. So more likely a Lightroom plugin problem.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact