• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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