• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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