The preview at the bottom of the view configuration shows exactly the data I am expecting. But when I go to the view URL or click on the view menu item, I'm shown the front page node, although the address bar says I am at the view URL.

------------------
View portfolioview, displaying items of type Node.

* Defaults
* Page

Defaults Default settings for this view.
View settings
Tag: portfolioview
Basic settings
Name: Defaults
Title: None
Style: Unformatted
SettingsRow style: Node
Use pager: No
Items to display: 10
Access: Unrestricted
Header: None
Footer: None
Empty text: None
RearrangeAdd
Relationships
None defined
RearrangeAdd
Arguments
None defined
RearrangeAdd
Sort criteria
Node: Post date desc
RearrangeAdd
Filters
Node: Type = Portfolio Entry

---------------
So you can see I have it set to filter based on the node type, and to sort on date. Simple enough. I just want a teaser list of all entries of this type.

What am I doing wrong?

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

What do you have in the 'path' setting on the 'page' tab?

lindsayo’s picture

Category: support » bug

"portfolioview"

I just had a friend take a look at this and he tells me:

Friend: This is weird. If you disable the frontpage view, it works.
me: that is weird.
okay, so i'm not just stupid?
Friend: no, it's not you
Friend: It seems to be a bug in views

steamforge’s picture

Status: Postponed (maintainer needs more info) » Active

The same problem has been happening to me. I created 2 Page views with paths. They are nothing fancy. 1 displayed 10 'Story' nodes and the other displayed 10 'Quote' nodes (custom node type). The quotes view previewed correctly in the UI, however visiting the 'quotes' page displayed the contents of the 'stories' view I created. I disabled the 'frontpage' view like the post above said and the 'quotes' displayed correctly but the 'stories' view now displays the 'quotes' view. Is there an eta on the next version of Views? If it's going to be a while, I will need to look into php snippets.

merlinofchaos’s picture

I plan to do alpha4 soon, by the end of this week at the latest.

Question: Does this happen in -dev as well?

thedroporg’s picture

Version: 6.x-2.0-alpha3 » 6.x-2.0-alpha4

I am experiencing this exact issue in alpha4. I'm going to try dev as well.

merlinofchaos’s picture

Do you also experience the same problem experienced in http://drupal.org/node/239428 -- these seem conceptually as though they may be related.

Like that one, I can't duplicate this one. I've tried two different PHP versions (5.1.6 and 5.2.5) and no dice; everything works perfectly for me.

SolomonGifford’s picture

I have a similar problem...

1.) I modified the frontpage view to add a filter by a single type, return only 1 node...no other changes.
2.) I added a new view that listed 10 nodes of a different type.

The frontpage view is now picking up the wrong type. In other words, its filtering by the type in the second view. All other settings appear to be correct.

merlinofchaos’s picture

http://drupal.org/node/239115 is duplicate of this.

merlinofchaos’s picture

Rather http://drupal.org/node/241335 is duplicate.

merlinofchaos’s picture

I've just committed one other thing that may fix this. Anyone who is experiencing this who is using cvs, can you please cvs up, hit your admin/build/modules page (or save a view), and then see if this is still happening?

merlinofchaos’s picture

Everyone who has this problem, please report your PHP version. And will someone please let me know if -dev still has this issue?

merlinofchaos’s picture

Also, if someone who can reproduce this issue would be willing to give me shell access to a test site for about 30 minutes, I can probably figure out what's wrong.

pal_ur’s picture

MySQL database 5.0.44
PHP 4.4.7-pl0-gentoo
PHP memory limit 64M
PHP register globals Tiltott
Unicode dir PHP mbstring extension
Webserver Apache

rormartin’s picture

More info for this bug:

I'm playing with all views with page and only show the fisrt one (unable the frontpage and you can see one of the other views, but only one, if you remove "this one" you can see the next one)

With traces in the code, aparently fails the "getpath()" method, this one allways return the same path for all views's pages.

This problem affect only for pages, the block representation of views works fine.

merlinofchaos’s picture

rormartin: Thank you, that is very valuable information! It gives me another place to look.

funkyhat’s picture

PHP version 4.4.8
MySQL version 4.1.22-standard

Hope this helps

BrandTim’s picture

I have what I think is a related problem. If I have more than 1 view, all views return the contents of node/22.

Apache version 1.3.37 (Unix)
MySQL version 4.1.22-standard
PHP version 4.4.4

Installed modules:
Ad: Ad, File Cache, Image Ad, Notify, Report
CCK: Address Field, Conditional Fields, Content, Content Taxonomy, Content Taxonomy Options, Date, Fieldgroup, Image Field, Option Widgets, See Map, Text
Core: Blog, Comment, Contact, Help, Locale, Path, Ping, Search, Statistics, Tracker, Upload
Development: Helpers, Helpers_theme
Input Filters: SpamSpan
Javascript Tools: JS Calendar
Location: Location, Location Phone, Location Views
Node Profile: Node Family, Node Profile, Usernode
Other: Automatic Nodetitles, Date API, Nice Menues, Role Signup, Signature, Site map, Subform Element, Taxonomy Batch Operations, Taxonomy List, Thickbox, TinyMCE, Token, Update Status
Pageroute: Pageroute, Pageroute Nodefamilies, Pageroute UI
Views: Content Taxonomy Views, Views, Views UI
Wesley Tanaka's Modules: Contact No CC

If you'd like to work with me in realtime on this, IM me: AOL/ICQ 5923201, MSN nospam [at] brandtim [dot] com. I'll continue to troubleshoot and will report back.

BrandTim

PeterZ’s picture

Similar issue. (I'm new to Drupal, so I'll try to explain clearly) View preview at the bottom of the View module page shows expected results based on settings. However, the page created from the links on the web site don't show the view created, but the default CCK view.

Also, in the administer >> site building >> views >> edit page, I've created a page view, assigned path and menu values (that get saved), but when I preview the query at the bottom of the page I get a blank/null title next to Title and "this display has no path" next to Path.

PHP version 4.4.7
MySQL 4.1.22-standard
Drupal Core 6.1 (installed via Fantastico/Cpanel)
CCK 6.x-1.x-dev
CCK fields are content permissions, content templates, fieldgroup, node reference, number, user reference (but only using text fields so far)
Views 6.x-2.0-alpha4 (and enabled Views UI)
Con Templates 6.x-0.7 (enabled but haven't touched it)

Thanks!

[Note: I disabled frontpage (adminster >> site building >> views >> List (disable frontpage) and it now works. So resolved.]

merlinofchaos’s picture

Status: Active » Fixed

I managed to reproduce this on a PHP4 installation and found the culprit. PHP does some weird things with references sometimes. Anyway, I checked in the fix.

pal_ur’s picture

Version: 6.x-2.0-alpha4 » 6.x-2.0-alpha5

On the same configuration as before, and I think it doesn't works with alpha5 version. Updated from alpha 4, CCK too. In the preview OK, but on the frontpage not...

merlinofchaos’s picture

Yes, I found the problem the day after I released alpha5. If you try the -dev version I think you'll find this fixed.

kilrizzy’s picture

Sorry if this is a dumb question, Im pretty new and have been having the same problem. Where can I get the dev version? alpha 5 is the newest I see

pal_ur’s picture

http://drupal.org/node/38878/release
At the end of the page.

Nice work, thank you!

kilrizzy’s picture

Awesome! Fixed! Thanks!

funkyhat’s picture

Yep, I can confirm this is fixed with the -dev version :-)

bhu-day’s picture

I have a problem with views alpha5. I have several views as a block but only the latest created view is shown in block list.

I use PHP 4.4.8 in my web hosting
MYSQL 4.1.22-standard-log

Thanks

smart-aleck’s picture

Version: 6.x-2.0-alpha5 » 6.x-2.x-dev

So I was playing around with Alpha-5 and it would not display my views correctly so I changed to the -dev version as reccomended and tried a couple things without success. My views were only coming up "Page not found" and then an out of memory error occurred and now my whole site is "Page not found" now. I cannot even navigate to node/1 etc...

I removed all entries in the database related to views and deleted the modules/views directory as well but I cannot figure out how to get my site back up!

PLEASE HELP

smart-aleck’s picture

Version: 6.x-2.x-dev » 6.x-2.0-alpha4

OK ... I managed to get it fixed by running the update.php and it seems to have reset whatever went haywire. I installed Alpha-4 and tried again but I was only able to get the first node type working when I disabled the frontpage view and only if I did not add anymore views.

So it seems like it works for now but with only 1 view max until this bug is figured out.

Views is pretty sweet so I hope we can fix this in the next few days!!!!!!!!!!!!!!!!!!!!!!!!

Operating system Linux
Kernel version 2.6.24.3-grsec
Machine Type i686
Apache version 1.3.37 (Unix)
PHP version 4.4.4
MySQL version 4.1.22-standard

merlinofchaos’s picture

Version: 6.x-2.0-alpha4 » 6.x-2.x-dev

alpha4 is a version out of date. Of *course* it still has this bug, it wasn't fixed until after alpha5, as I said in this issue.

smart-aleck’s picture

Yeah I installed Alpha-4 later because I tried 5 already and wanted to see if there was a difference.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

eyaal’s picture

Hi guys,

This issue apears to have been fixed but please help me. I have been battling with this for some time now, I created a view for members on my site but I kept having this erorr message:"This display has no path." what could posibly be the problem? I did the path setup but can't seem to know what more to do.

vortexcentrum’s picture

Issue summary: View changes

These are all technical solutions. But they weren't why one of my pages would not load and instead visitors were taken to the front page.

It took a bit of finding but it all came down to human error. Mine.

These days, I work in D9 or 10 but I have a couple of things still on 7.

There's a difference between 7 and the later versions in the URL box.

For 9 and 10, a leading slash is required.

For 7 it must not be put there.

So, new habits die hard and I put the leading slash when I created a page in 7.

This in or not-in situation was not a problem when this thread began but perhaps my error might help someone now.