Help Page displaying “Page not found”
- This topic has 13 replies, 5 voices, and was last updated 3 years, 9 months ago by
Boone Gorges.
-
AuthorPosts
-
October 29, 2020 at 2:30 pm #8567
Stephon
ParticipantHi everyone.
First of all thank you so much for creating this forum, the information is very helpful. I have a question about an issue with my help page. For some reason my help page is displaying:
PAGE NOT FOUNDThe page you requested could not be found. Please use the menu above to find the page you need.
I added information to the page but when I am trying to view this page, the message above is displayed. This message is also displayed when the calendar page is visited.
Any form of help will be greatly appreciated and thank you in advance.
October 29, 2020 at 2:31 pm #8568Stephon
ParticipantFirst of all thank you so much for creating this forum, the information is very helpful. I have a question about an issue with my help page. For some reason my help page is displaying:
PAGE NOT FOUNDThe page you requested could not be found. Please use the menu above to find the page you need.
I added information to the page but when I am trying to view this page, the message above is displayed. This message is also displayed when the calendar page is visited.
Any form of help will be greatly appreciated and thank you in advance.
October 30, 2020 at 1:08 pm #8570Bree
ParticipantHi Stephon,
Thanks for reaching out, and hopefully we can help you figure out what’s going on here!
Have you checked the menu to make sure that the URLs for Help and Calendar are correct? You can find these in Dashboard > CBOX OpenLab > Brand Settings > Visual/Customize > Menus > Main Menu. Here you should see a custom link for Help and Calendar. If those are not correct, try changing them here to see if that fixes the issue.
If not, would you mind sending the URL for your site?
Thanks!
Bree
November 2, 2020 at 1:55 pm #8572Mary
ParticipantHi Bree,
Thanks for this help. Stephon and I are working together on this. I just checked that the main menu has the correct URL and it does match the page we’ve been editing (I’ve attached a screenshot). The URL for our site is https://unewhavendh.org.
In order to get the help pages updated, I’ve added Stephon to the OpenLab site, but not as an admin. I actually can’t for the life of me figure out how to confirm if I’ve added him as an author or in some other capacity (when I go to the dashboard for our main site, I can’t scroll down to see “users”). I’m sharing in case this is part of the issue.
Any help you can provide will be much appreciated!
-Mary
Thank you!
Attachments:
You must be logged in to view attached files.November 3, 2020 at 2:54 pm #8576Bree
ParticipantHi Mary,
Thanks for the additional details!
I’m going to reach out to the rest of the team about the Help and Calendar issue because I can’t reproduce it on our dev site.
Regarding the question about users, you’ll need to make Stephon an editor or admin on the main site so that he can edit pages. To do that, you can go directly to: https://unewhavendh.org/wp-admin/users.php. Find his username, edit, and under “Role”, change to editor or admin.
Scrolling down to the items farther down on the Dashboard menu can be a little tricky sometimes – if it gets stuck as you’re trying to scroll down, you can try scrolling up just a bit and you should see the menu items you’re trying to get to. Sorry for the confusion! We’re going to look into a fix for this in an upcoming release.
Thanks!
Bree
November 3, 2020 at 3:29 pm #8577Ray
KeymasterHi Mary,
About the missing Help and Calendar pages, one weird thing I found is I can navigate to only one post on your site:
https://unewhavendh.org/2019/07/07/hello-world/
or:
https://unewhavendh.org/?p=1
The rest of your WordPress pages like “About” do not resolve. The Help page should show up at
https://unewhavendh.org/?p=44
from your help screenshot, but that doesn’t work.Can you try three things?
1. Navigate to “Settings > Permalinks” in the admin dashboard. Ensure that something other than “Plain” is selected and save. Next, visit the page again on the frontend and see if that helps.
2. There appears to be a fatal error when I visit the “page not found” page. Can you set
WP_DEBUG
totrue
inwp-config.php
? Then copy any errors that you see at the bottom of the “page not found” page.More info about how to set
WP_DEBUG
totrue
can be found here:https://wordpress.org/support/article/debugging-in-wordpress/
3. Are you using any plugins other than Commons In A Box? If so, can you list them? Are you using any caching plugins?
November 3, 2020 at 4:31 pm #8584Mary
ParticipantHi Ray,
Thanks for your speedy response! I have tried to do the things you suggest and have some screenshots to show you just how lost I am. I cannot find a “permalinks” option under settings at https://unewhavendh.org/wp-admin/network/settings.php. I’ve attached a screenshot of what I see.
I have also included two screenshots showing all of the plugins installed.
WP_DEBUG
was already set totrue
inwp-config.php
(I suppose from a previous attempt to correct something on my part). I am not sure what you mean about copying any errors I see at the bottom of the “page not found” page.-Mary
Attachments:
You must be logged in to view attached files.November 3, 2020 at 7:30 pm #8589Ray
KeymasterHi Mary,
Thanks for the info and the screenshots.
About permalinks, I should have been more specific! Your screenshots were taken from the Network Admin area. Can you go to the main site’s admin dashboard instead? Specifically:
https://unewhavendh.org/wp-admin/options-permalink.php
.Regarding
WP_DEBUG
, that looks good. Is there a debug log created at/wp-content/debug.log
? If so, can you paste the messages or upload the log somewhere?If you don’t see a log file, set the following in
wp-config.php
:
define( 'WP_DEBUG_LOG', dirname( __FILE__ ) . '/wp-content/uploads/cbox-debug.log' );
This will tell WordPress to create a log file in the uploads directory. Then, navigate back to your “page not found” page and see if our custom log file is generated at the location we specified. If the log exists, copy the contents of the log and paste it here.
November 3, 2020 at 9:07 pm #8590Mary
ParticipantI had a hard time getting to the permalink area because of the scroll issue I mentioned before. With the direct link, though, I was able to check it and I have attached a screenshot of what I saw. Interestingly, the help page did display properly when I next tried to look at it. There are still other pages not loading, though.
I’m uploading the debug log created with the new command in the config file.
Attachments:
You must be logged in to view attached files.November 3, 2020 at 9:08 pm #8592Mary
ParticipantHere’s the content of the debug log
[04-Nov-2020 02:00:20 UTC] WordPress database error Table ‘unewhave_ciab1.ciab_62_options’ doesn’t exist for query SELECT option_value FROM ciab_62_options WHERE option_name = ‘ciab_62_user_roles’ LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/openlab-theme/buddypress/groups/index-directory.php’), bp_get_template_part, bp_locate_template, load_template, require(‘/themes/openlab-theme/buddypress/groups/groups-loop.php’), openlab_get_group_site_url, get_blog_option, switch_to_blog, do_action(‘switch_blog’), WP_Hook->do_action, WP_Hook->apply_filters, wp_switch_roles_and_user, WP_Roles->for_site, WP_Roles->get_roles_data, get_option
[04-Nov-2020 02:00:20 UTC] WordPress database error Table ‘unewhave_ciab1.ciab_62_options’ doesn’t exist for query SELECT option_value FROM ciab_62_options WHERE option_name = ‘siteurl’ LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/openlab-theme/buddypress/groups/index-directory.php’), bp_get_template_part, bp_locate_template, load_template, require(‘/themes/openlab-theme/buddypress/groups/groups-loop.php’), openlab_get_group_site_url, get_blog_option, get_optionNovember 3, 2020 at 11:05 pm #8593Ray
KeymasterHi Mary,
Looks like most of the pages are working now. About the Calendar page and other broken pages, can you check if those pages were published?
https://unewhavendh.org/wp-admin/edit.php?post_type=page
About the “page not found” page not rendering fully, I was able to duplicate this problem locally. It’s due to a missing call to output the footer and not due to a fatal error. Temporary fix is available here: https://github.com/cuny-academic-commons/openlab-theme/commit/d306ab97e8fda83e5daf39c4b168329c77e6b24e. This will be a part of the next maintenance release later in the month.
About the debug log, the error states that the options database table was not created for site
6662. The log item states that this site might have been created with a group. What happens when you attempt to edit site6662 in the Network Admin dashboard?https://unewhavendh.org/wp-admin/network/site-info.php?id=62
? Does this site exist?November 4, 2020 at 7:32 pm #8595Mary
ParticipantThank you! I didn’t have any content on the Calendar page, so I just removed it from the menu.
https://unewhavendh.org/wp-admin/network/site-info.php?id=62 (does not exist)
https://unewhavendh.org/wp-admin/network/site-info.php?id=66 (does exist…create as a site for a course this semester)
Does that help make sense of what the debug log means?
Mary
November 6, 2020 at 12:20 am #8598Ray
KeymasterHi Mary,
For the debug log, I meant site ID 62, not 66 (was a typo). I think what happened was a site that was connected to a group, was later manually deleted. For some reason, the group connected to the removed site is still referencing the deleted site. The group could be either from a course, project or portfolio.
I’m going to consult with @cbox_admin (Boone), who would know more about this.
Boone, the debug log references
openlab_get_group_site_url()
. I looked into that function and that function callsopenlab_get_site_id_by_group_id()
, which looks for the site ID in groupmeta. I think the site ID is not being removed from groupmeta when a site is deleted. Can you confirm?November 9, 2020 at 10:33 am #8604Boone Gorges
KeymasterHi @r-a-y – Thanks for the ping. I’ve confirmed the behavior and put a fix in place. https://github.com/cuny-academic-commons/commons-in-a-box/issues/313
-
AuthorPosts
- You must be logged in to reply to this topic.