• Resolved pdoc

    (@pdoc)


    Hi,
    I have two sites both at latest level of WordPress and LifterLMS.

    Selecting any course from the course catalog yields “Page not found”

    This occurs to anybody, either visitors or students logged in. Even if after logging in as a student, you go to course catalog and select a course you are enrolled in.

    I believe it’s not the way I created the courses, in fact it happens also with the default course you can install with the plugin.

    Please visit
    https://mpempt.presentardoc.com/
    to see what I mean.

    What can I check?

    —————————-
    I did some investigation myself (this is why so many edits to this post) and it looks like it is in conflict with WPML plugin:

    • Courses were created in Spanish language, when the site was not multilanguage (only Spanish).
    • Then, WPML is installed and other languages are configured: English, Italian, French
    • At that point, course catalog in Spanish is ok, while in any other language is an empty list. This is ok since I had not translated any course to those new languages.
    • Nevertheless, in this situation (courses only in Spanish, catalog only in Spanish) I cannot select any course from the “Spanish Catalog” because it yields “Page not found”.
    • If I translate courses to the other languages (actually I just did a mere duplication, so that the internal content it’s not translated). Then I can see the “English Catalog” “Italian Catalog” and “French Catalog” (each correctly showing only the courses duplicated in any particular language.
    • Now, I have courses in any language, that appear listed in any catalog, but only from the “English Catalog” I can select a course to see the content, all other languages yeld Page not found

    Thanks a lot!

    • This topic was modified 7 years, 6 months ago by pdoc.
    • This topic was modified 7 years, 6 months ago by pdoc.
    • This topic was modified 7 years, 6 months ago by pdoc.
Viewing 6 replies - 1 through 6 (of 6 total)
  • @pdoc,

    Thanks for all the information here. I took a look at your site and all of your course catalogs (and individual pages) appear to be functioning. I’m not really that familiar with WPML (it’s on my enormous backlog to take their plugin compatibility courses and apply as an officially supported WPML plugin but I simply haven’t had the time to do that yet) but it seems like your issue maybe is resolved?

    I’m guessing that the issue is a permalinks issue and once the translations are in place all you need to do is (maybe) flush them and you’re good to go

    If you still need help please let me know,

    Thread Starter pdoc

    (@pdoc)

    Hi Thomas,

    My issue is not solved, unfortunately.
    The reason why you saw everything working, is possibly that your browser has English as the default language (you would see the UK flag in the menu).
    In fact the issue is that the catalog works only in English ??
    If you try to switch to Spanish,for example and go to “Catalogo cursos”, and then click on any course, you will get the “Page not found” (“Vaya! Esta página no se encuentra!”)
    It is interesting, though, your comments about the permalinks, but I am not sure I understand the technical meaning of your advice, could you please give some more detail?

    Thanks a lot!

    @pdoc,

    I see, I checkend the catalogs themselves in different languages but I didn’t check the courses because I didn’t realize you were having issues on the courses themselves.

    So re permalinks:

    WP Stores permalink data in the database (WPML probably hooks into this) so when you translate “course” (the URL slug for a single course) to “courso” that new slug won’t be present in the database so you’ll need to “flush” the permalink data so that the new URL slugs will be available when someone requests them. This caching causes the 404s immediately after applying a translation and once flushed you shouldn’t have to mess with it again (unless you update your translation for that slug).

    Flushing is easy: https://lifterlms.com/docs/how-to-flush-wordpress-rewrite-rules-or-permalinks/

    Give that a shot, maybe it’ll resolve the issue.

    Thread Starter pdoc

    (@pdoc)

    Hello Thomas,
    Finally I think I could solve it.
    It has to do do with a combination of WPML plugin, permalinks, and how this affected my LifterLMS installation.

    I want to thank you for your willingness to help, besides not being necessarily a LifterLMS problem. I appreciate that you could find the time to give advices in a timely manner.

    So now I’m updating this to leave a record of what I did, because I understand that WPML is a popular multilingual plugin, and my issue may be experimented by others:

    SYMPTOM:
    LinfterLMS and courses correctly functioning in a single language site.
    Then WPML plugin is installed to configure additional languages.
    Courses (they must be a special kind of post, I guess) can then be translated in other languages -just like regular post do.
    At this point, the course catalog shows a list of courses that have been translated for any given language, but if you click on a specific element, the course description is not shown, a 404 page is presented instead.
    The only course catalog that allows to open individual courses details is the English one, even if the original language of the site (so the language in which all courses had originally been created) is another one.

    SOLUTION:
    I did a combination of the following:
    – Install the additional “WPML sticky ilnks” plugin
    – In the admin panel go to In admin panel: Settigs->Permalinks, then “Common Settings” and select the “Plain” radio button.
    – flush the permalinks by clicking save

    This seems to have returned the situation to normality.

    @pdoc,

    Thanks for figuring this out and posting your findings!

    Thanks, very useful info fixed my problem too.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Course catalog points to “Page not found”’ is closed to new replies.