1) I created a series of Views (header+attachments) as shown at
http://www.findexperts.org:8080/lbct/247/internet-experts-witnesses

2) I grouped them into a Panel

3) I had problems with this page in IE =< v8

4) I moved the "sub" views (Chairman, Professional, Assoc, etc) into the template of the header view.

5) I deleted the panel

6) I tried to assign the path that was on the panel ("lbct") to the header view.

7) the path came up not found

8) I tried exporting, deleting and importing the view, no luck

9) I change the view path "lbct2" and re-created a panel with just one view wit a path of "lbct"

10) that seems to work.

The problem is the panel do not seem to be freeing up the url path that was assigned to it, and hence you can not re-use that path later in something like a view.

The path of the panel becomes unassigned, not assignable, and not found if you try to go to it.

I have things working with the panel and 1 view, however that seems to be a bit inefficient to use a panel to host just one and only one view.

Any thoughts ???

Respectfully,

Patrick

CommentFileSizeAuthor
#10 Google Chrome.png93.57 KBpmol123
#6 Google Chrome.png189.71 KBpmol123
#4 Firefox.png233.67 KBpmol123

Comments

merlinofchaos’s picture

Try running these two queries from a mysql prompt and tell me the results:

select path, page_callback from menu_router where path = 'lbct';
select source, alias from url_alias where alias = 'lbct';

(Correct the path if I got the wrong path; in both cases, it should be the path that is not working for you).

merlinofchaos’s picture

Note: Be sure to do both of these things after you have removed the panel that you do not wish to have on the path.

pmol123’s picture

Interesting, I did check url aliases and not nothing, but I dod not rebuild the menus.
(I will have results from these queries in a few minutes.)

pmol123’s picture

StatusFileSize
new233.67 KB

BEFORE DELETE:
mysql> use expert_dev
Database changed
mysql> select path, page_callback from menu_router where path = 'lbct';
+------+---------------------------+
| path | page_callback |
+------+---------------------------+
| lbct | page_manager_page_execute |
+------+---------------------------+
1 row in set (0.00 sec)

mysql>
mysql> select source, alias from url_alias where alias = 'lbct';
Empty set (0.00 sec)

AFTER DELETE:
mysql>
mysql> select path, page_callback from menu_router where path = 'lbct';
Empty set (0.00 sec)

mysql> select source, alias from url_alias where alias = 'lbct';
Empty set (0.00 sec)

mysql>

merlinofchaos’s picture

Well, the database entries indicate that Panels no longer has that path.

After you create your page display in your view, with the proper path, you should then get an entry in the menu_router table that has the callback for the view.

pmol123’s picture

StatusFileSize
new189.71 KB

1) Ok, now I added that path to my view as shown in email attachment below and I get the same page not found error.

2) I run the SQL yo gave me =>

mysql>
mysql> select path, page_callback from menu_router where path = 'lbct';
Empty set (0.00 sec)

mysql> select source, alias from url_alias where alias = 'lbct';
Empty set (0.00 sec)

mysql>

3) I rebuilt the menus with option from developers block.

4) I re-ran the SQL and got same empty set results.

Its like the path "lbct/%/%" is locked to only a panel.

If I re-create the panel, the page will come up just fine with that path.

Very odd problem.

Patrick

merlinofchaos’s picture

If the path is lbct/%/% then the query I gave you won't find it. You'll need to change it to "LIKE 'lbct%'"

merlinofchaos’s picture

Also, I would doublecheck the validation on your arguments and make sure that the view itself isn't just 404ing because the arguments fail to validate.

pmol123’s picture

I figured that =>

mysql>
mysql> select path, page_callback from menu_router where path like 'lbct%';
+-----------+----------------------+
| path | page_callback |
+-----------+----------------------+
| lbct/%/% | views_page |
| lbct/new | create_category_page |
| lbct2/%/% | views_page |
+-----------+----------------------+
3 rows in set (0.00 sec)

mysql> select source, alias from url_alias where alias like 'lbct%';
Empty set (0.00 sec)

This URL now works using only views =>

http://www.findexperts.org:8080/lbct3/247/internet-experts-witnesses

However, changing the path is not an option as Google already knows about "lbct/%/%"

The page will not load with that URL.

BTW:
1) I have flushed cache with "drush cc all" and on the dev/performance page.
2) I have flush firefox, IE etc

I am pretty confident its not a cache issue as the following 3 URLs all fail too.
http://www.findexperts.org:8080/lbct/247/internet-experts-witnesses
http://www.findexperts.org:8080/lbct/247/ijgsdkgsdkgjsdku
http://www.findexperts.org:8080/lbct/247

I ignore the last argument with a "Global Null" in the view.

Patrick

pmol123’s picture

StatusFileSize
new93.57 KB

Inside the view, if I put the args in the "Preview" it works.

I just change it to "DIsplay all results" and have the same error.

merlinofchaos’s picture

Well, with that leading to views_page, Panels has definitely given up the URL, and that is not the issue. Why it comes up 404 is still a bit of a mystery, but it should be going to views_page and working its way through to the View from there. But I'm 99.999% certain that it's not an issue with Panels at this point. You could put a debug message in views_page() and see for sure whether or not it's getting there?

I don't have any idea why it works for lbct2 and not lbct, though. That's just *weird*.

pmol123’s picture

I agree, very odd.

I need to finish the CSS on this theme and cut it over to replace a bartik version at www.ExpertWitness.com

I will back up a version and set it up on a dev instance for research purposes.

Your work on Drupal is amazing, God Bless

Respectfully,

Patrick

pmol123’s picture

(Please close with the proper status.)

Patrick

merlinofchaos’s picture

Status: Active » Closed (works as designed)

Works as Designed is about as close as I can come. Sorry I couldn't give you a better answer.