computingforall
Forum Replies Created
-
Hi,
I have updated to LP 4.2.2.1 and it is working well. The problem is solved.
Thank you!
Forum: Plugins
In reply to: [Spam protection, Anti-Spam, FireWall by CleanTalk] Error on Plugin PageThe error is not there anymore. It went away automatically. I guess, it worked probably when anti-spam tried to update the databased again.
Thanks for the replies.
Forum: Plugins
In reply to: [Spam protection, Anti-Spam, FireWall by CleanTalk] Error on Plugin PageI have the same error, but why is this error appearing in the first place? It seems like anti-spam is trying to access a non-existent external link during an update. Looks spammy. ??
Forum: Plugins
In reply to: [Image and video gallery from Google Drive] Changing Advanced Option settingsWow wow and wow ?? Thank you so much for suggesting the ctype installation! I spoke with the hosting company and they installed ctype for the account. Then the advanced settings of the plugin Image and video gallery from Google Drive started to work.
Again, you have built an excellent plugin!
Many many many thanks! ??????????
Forum: Plugins
In reply to: [Image and video gallery from Google Drive] Changing Advanced Option settingsI forgot to paste the fields with sgdg prefix in the previous message. Here are the fileds sgdg_client_id, sgdg_client_secret, sgdg_access_token, and sgdg_root_path in the options table with sgdg prefix.
Thank you.
Forum: Plugins
In reply to: [Image and video gallery from Google Drive] Changing Advanced Option settingsHello,
Thank you so much for the help. I enabled the debug mode.The debug errors are mostly the followings. I am not sure what they are.
—————————
PHP Notice: Trying to get property ‘time’ of non-object in wp-content/plugins/skaut-google-drive-gallery/frontend/class-api-fields.php on line 109PHP Notice: Undefined index: timestamp in wp-content/plugins/skaut-google-drive-gallery/frontend/page.php on line 372
PHP Fatal error: Uncaught Error: Call to undefined function Sgdg\Frontend\ctype_digit() in wp-content/plugins/skaut-google-drive-gallery/frontend/class-bounded-integer-option.php:52 Stack trace: #0 wp-includes/class-wp-hook.php(305): Sgdg\Frontend\Bounded_Integer_Option->sanitize('250') #1 wp-includes/plugin.php(189): WP_Hook->apply_filters('250', Array) #2 wp-includes/formatting.php(4907): apply_filters('sanitize_option...', '250', 'sgdg_grid_heigh...', '250') #3 wp-includes/option.php(415): sanitize_option('sgdg_grid_heigh...', '250') #4 wp-admin/ in wp-content/plugins/skaut-google-drive-gallery/frontend/class-bounded-integer-option.php on line 52
—————————
In the options table I found the following fields with sgdg_ as prefix. I am not sure which one is related to the settings. Or, should there be more fields with the sgdg prefix?
Thank you very much for the help.
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Comments are not within lessonsHi,
Thank you very much for making the comments in the lessons visible with the lesson content.I just found that the main course page is not showing the comments at the bottom anymore even though WordPress’s “Allow comments” checkbox is selected. I had a number of comments on the following course page. The comments are not showing anymore.
https://computing4all.com/courses/introductory-data-science/I am not sure if this is a LearnPress issue or a theme issue. Should I contact the Eduma service?
Thank you.
Forum: Plugins
In reply to: [LearnPress - WordPress LMS Plugin] Comments are not within lessonsThanks a lot!
@wpkube
Wow! After incorporating the codes you provided, both the header and footer codes are embedded in lessons.Embed code will be handy in embedding structured data to enhance SEO of my site.
I contacted LearnPress, which you noticed. I also sought help from my theme developers (a paid theme for LearnPress), which resulted in no useful response.
I did not receive any such support that I received from you. The code segment you provided, which helps embed-code work properly with learnpress, also gives me an idea about how to retrieve the lesson id when required.
I cannot thank you enough for all the research you did, the codes you wrote, and the time you spent helping a user of your free but tremendously helpful plugin.
Many many many thanks! I wish you all the best.`
I am facing the same problem. I am trying to get the post ID of the current lesson. get_the_ID() from a lesson is returning the ID of the course. Some plug-ins rely on the ID of the loaded post. Those plugins are not working for lessons.
Hi @wpkube
Your guess is correct. That is, get_the_ID() is returning an incorrect ID.Here is what is happening — the lesson posts are returning the course page’s ID under which the lessons are created.
If I embed anything on the course page, then all lesson posts under that course contain the course page’s embedded code.
If I try to embed any code to a lesson, it is not going anywhere (not even to the course page.)
In the editor URLs (such as, wp-admin/post.php?post=5216&action=edit ) , the lessons have their own post IDs, which are different from the course post ID.
When the lesson is loaded in the browser, the post ID printed on the html source (due to the echo command) shows the course page’s ID.
If you kindly decide to proceed with further tests, is it alright to send you the function that fixes the urls for the sitemap, written on my functions.php file? I think the function has some hints on the ID-related issue we currently have. My email address is computeadmin (the at the rate of symbol) computing4all (the dot) com. I am not asking for your email address for privacy reasons. If you kindly send me an email, I will reply with the sitemap-related function. I am just taking caution because I do not know how serious the code is.
It seems the issue was never with embed code plug-in. I completely understand if you would like to close the thread because the problem has been detected.
I highly appreciate all the communications and systematic tests you came up with.
Thank you.`
Hi @wpkube
By the way, a sample lesson-post where I am trying to add head code is: https://computing4all.com/courses/introductory-data-science/lessons/what-is-a-vector/Could it be the case that the backend tries to add the code to another url, such as https://computing4all.com/lessons/what-is-a-vector/
(where the part “courses/introductory-data-science” is missing)Previously, the Eduma theme support added a function to correct the URLS of the sitemap generated by Yoast. The function was added to the functions.php file of the Child theme of Eduma. Before the addition of the function, Yoast wast generating sitemaps containing urls without the “courses/introductory-data-science” part.
That is why I am saying, may be embed-code is adding to https://computing4all.com/lessons/what-is-a-vector/, instead of https://computing4all.com/courses/introductory-data-science/lessons/what-is-a-vector/
Is it possible to check, from the embed-code, in which url it is trying to add the head code?
Thank you.
Hi @wpkube
I have done the test. There was no impact. Lesson posts still do not have the head code. Other posts contain the intended head code when added. That is, there is no impact with the change.I have put back the original code in the function output_head_code function.
Please let me know what to do next.
Thanks once again for agreeing to run the tests.
Hi @wpkube
I did not think about another plugin being in conflict. That is a good point.I do not have much experience with PHP, but I have worked with basic PHP codes from time to time. I am up for the test. Please let me know how to proceed.
Thank you.
That is an interesting finding. It still does not work on the lessons pages for me. The alert with the test message shows up on other pages though.
This makes me think that the issue is probably with the theme (Eduma by Thimpress) I am using. I will contact the theme developers.
I really appreciate that you looked deep inside the problem. Many many thanks!