Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX OpenLab Support

Public Group active 1 year, 1 month ago

Have a question about Commons In A Box OpenLab, our new platform for open learning? Join the group and post your question here. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Help Page displaying “Page not found”

  • This topic has 13 replies, 5 voices, and was last updated 4 years, 6 months ago by Boone Gorges.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • October 29, 2020 at 2:30 pm #8567
    Stephon
    Participant

    Hi 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 FOUND

    The 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 #8568
    Stephon
    Participant

    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 FOUND

    The 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 #8570
    Bree
    Participant

    Hi 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 #8572
    Mary
    Participant

    Hi 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 #8576
    Bree
    Participant

    Hi 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 #8577
    Ray
    Keymaster

    Hi 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 to true in wp-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 to true 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 #8584
    Mary
    Participant

    Hi 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 to true in wp-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 #8589
    Ray
    Keymaster

    Hi 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 #8590
    Mary
    Participant

    I 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 #8592
    Mary
    Participant

    Here’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_option

    November 3, 2020 at 11:05 pm #8593
    Ray
    Keymaster

    Hi 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 66 62. The log item states that this site might have been created with a group. What happens when you attempt to edit site 66 62 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 #8595
    Mary
    Participant

    Thank 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 #8598
    Ray
    Keymaster

    Hi 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 calls openlab_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 #8604
    Boone Gorges
    Keymaster

    Hi @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

  • Author
    Posts
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX OpenLab Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 22
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register