• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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