• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

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