• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

Non-static method ProtectedDirectoryManipulator::updateProtDirectory() cannot be called statically

si458

New Pleskian
Hi All,

im creating a very basic app which lets me create password protected directorys and set user, upload files etc

im using the Plesk XML API

i have working the create passworddirectory, delete passworddirectory, but i cant get the edit passworddirectory to work?

i just keep getting this XML error
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.9.1">
<protected-dir>
<set>
<result>
<status>error</status>
<errcode>1002</errcode>
<errtext>Non-static method ProtectedDirectoryManipulator::updateProtDirectory() cannot be called statically</errtext>
</result>
</set>
</protected-dir>
</packet>

this is my sample xml i sent to the server
<?xml version="1.0" encoding="UTF-8"?>
<packet>
<protected-dir>
<set>
<filter>
<id>149</id>
</filter>
<values>
<name>/bobby</name>
<header>new header</header>
</values>
</set>
</protected-dir>
</packet>
so im not too sure whats going on or what im doing wrong?
the id is the id i retrieve from the <get> to begin with
and in my example the <name> didnt change, only the header

any help would be amazing!

Kindest Regards

Simon
 
@Kaspar does my example above not replicate it on your setup? as thats all ive done to get the error
My mistake, I wrote my previous post to fast. I meant to say that I was actually able to replicate the issue, with the same error as you encountered.
 
Last edited:
Back
Top