• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

undefinedpx value errors in CSS validator

brainforge

Basic Pleskian
Built a simple single page website using Web Presence - surely nothing can go wrong with that!
Seemed to work and looked good... until -

http://jigsaw.w3.org/css-validator/validator failed with lots of message like this;
Value Error : width Too many values or values are not recognized : undefinedpx


After stripping the page down found able to reproduce the problem very simply as follows:

Step 1) Create a Text & Images module.
Go into editor - click html, enter custom html, for example:

<p><img src="http://anydomain.com/anyimage.png" alt="My Example"/></p>

Click update.
Click html again and the custom html has now changed to:

<p><span class="image-block" style="undefined width:undefinedpx;"><img "src="http://anydomain.com/anyimage.png" alt="My Example"></img></span></p>

Step 2) Don't change anything, just repeat:
Click update.
Click html again and the custom html has now changed to:

<p><span class="image-block" style="undefined width:undefinedpx; width:undefinedpx;"><img "src="http://anydomain.com/anyimage.png" alt="My Example"></img></span></p>

Step 3) Don't change anything, just repeat:
Click update.
Click html again and the custom html has now changed to:

<p><span class="image-block" style="undefined width:undefinedpx; width:undefinedpx; width:undefinedpx;"><img "src="http://anydomain.com/anyimage.png" alt="My Example"></img></span></p>

Any ideas?
 
Hello brainforge,

It seems as if there is an issue with Web Presence Builder's internal code validator.

Workaround: Insert your custom code into a script module instead of a text/images module like this:

Code:
<?php
?>
<p><img src="http://anydomain.com/anyimage.png" alt="My Example" /></p>

Any luck?
 
Thanks, solved the problem.
Forgot - when there's more than one way of doing something, try them all...
 
Thanks for your feedback, brainforge.

@ Parallels: Please have a look at the code validator and fix it, thanks.
 
Back
Top