Hi guys. I've been using Drupal + Views for years now know it well but I have some extraneous code in my results (displayed output) that I can't explain/debug. IE in the resultant code the view generates the following extraneous code:

<p> == $0
<span>
<span>
</span>
</span>
</p>

IE there's is no content there or any other markup/output that explains where it came from. The view itself comprises:

1. The node ID (excluded)
2. The node title
3. The body (with no custom field/labels applied)

The extraneous code is output both before and after the title, in one block and only after the title in the 2nd block (which is Views accordion). The extraneous output was also there before and after I tested with View Accordion module too.

Steps:
As far as I know, we just create the page view first of the custom content type, created the simple view (which is a simple list of questions and answers from two different fields) and 'bingo' the extraneous code appears.

???

Q.

Comments

quantos created an issue. See original summary.

quantos’s picture

Issue summary: View changes
damienmckenna’s picture

Component: Views Data » Miscellaneous
Category: Bug report » Support request

When did the problem start? What version of Views are you using? Did you recently upgrade your PHP install? Have you recently updated some of the site's modules or contrib theme(s)? Do you use the PHP or Views PHP modules on your site? Do you have any strange activity with unknown content showing up on the site?

quantos’s picture

Version: 7.x-3.x-dev » 7.x-3.21

Apologies Damien. I've just updated this 'ticket' to show correct (latest) version being used 7.3.21. The problem started today, effectively, with a brand new view. We have approximately 20-30 sites under our management all of which makes comprehensive use of Views and I can't say I've seen this issue anywhere else (generally speaking). I was hoping this was a known problem.

Local environment is Windows 10/Pro running XAMPP and PHP 7.1.24 (Apache/2.4.37 (Win32) OpenSSL/1.0.2p PHP/7.1.24).

The site in question is running standard or contributed modules only with no custom modules or php, etc, so very 'out of the box' compared to what you can do with Drupal. IE No PHP Views and no other PHP modules running. This update is also running locally (as well as live) and exhibits no strange activity, etc. No other recent updates applied.

Thanks for any light you can throw on this.

Q.

quantos’s picture

SOLVED! (sort of). Sorry Damien. But I've realised that if I checkbox 'strip HTML tags' under the "Rewrite Results" options the extraneous code disappears.

This doesn't explain where it came from though as there's nothing else in the Drupal field (long copy text field) that is generating the markup - but at least it's gone. I hope that helps anybody else with the same issue.

damienmckenna’s picture

Status: Active » Fixed

Good to know, thanks for letting me know you worked out the problem.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.