Forms not saving
Dylan I am unable to get the HD forms to save the fields. I can start process to setup the form and it looks good. But does not save the fields. When I go back to edit it, the form is blank.
Let me start off with my intent for this. What I am planning might not work. I have bought the styler and also the results pro plugin. We are doing a little informal training deal where they watch a video and answer 3 simple questions. Getting all 3 right redirects them to a new page with another video with 3 more questions. Some training might only be one video and some might be ten videos with 10 sets of questions.
The above is working perfectly.
For Results to work. I think we need forms?? I just want them to enter name, email and possibly phone number so when done with series of training someone gets an email that they have completed.
I have a feeling what I want to do wont work perfectly as when doing the 10 redirects in that training series you are basically using 10 different quizzes. If nothing else, we could add the form to the last page which will be a congratulations page with a PDF showing a summary of the training.
So I have the issue of the form not saving and then the question about how you would accomplish what I want.
Rich
Hi Rich,
first, with the form not saving. I assume you are talking about HDForms. Are you sure you are actually saving the form? I know this sounds dumb to ask, but HDForms was designed to follow WordPress’ default page editor Gutenberg design – and since you are using Divi, it’s totally possible that you are just unfamiliar with how it works.
The way it works is that if you have a field selected, the sidebar will show you the options and settings for that field.
If you select the form (you can do this either by selecting any of the whitespace around a field, or by selecting Form from the sidebar), you will now be editing the settings for the form itself, including saving. Hope this makes sense (I really need to bump up the production of a tutorial vid for HDForms!).
For your specific use case on connect the quizzes, the problem here really is caused by the redirections, as that makes it hard to “connect” the quiz taker to each of the individual quizzes (a new page is a new page after all). There ARE options, though.
First as a bonus, edit the settings of the “last” quiz in the chain, and go to the Advanced Tab. Since you have the Save Results Pro addon, you will see a new setting “Enable Save Results Pro Emails”. Make sure this is enabled (it will be by default). In fact, you’ll want to edit each quiz EXCEPT the last to turn off this feature. This is so that you are only sent an email when a user finishes the last quiz, and not for each individual quiz.
Now for the actual problem, how do we connect the user to each quiz? Unfortunately, we cannot add the form only to a single quiz, we need to add it to them all.
MAKE USERS LOG IN
The Save Results Pro addon automatically grabs the info from the logged in user. So if possible, make quiz takers sign in to your site. This way, you don’t need to add the forms at all, as each quiz result will automatically contain their user info.
If you do not already have user registration/login, there are lots of other free plugins dedicated to user registration and management. Just make sure that your registered users are subscribers so that they don’t get access to any of your backend admin stuff.
JUST DEAL WITH IT
The “just deal with it” solution… isn’t a solution. But it will work. Since your form only contains 2 or 3 fields, although not the best user experience, IMO, it’s not a dealbreaker to have your users enter their information for each quiz, as annoying as it might be for them.
The Harmonic Design / Dylan Way
The ultimate way to do this requires a bit of extra coding, but would be the best solution. The idea is this.
- We add the form to all quizzes like normal.
- When the first quiz submits, before the redirect, we get the info submitted by the user in the form, and add it to the redirect URL as a URL parameter. (example:
./quiz?field1=dylan&[email protected]&phone=555-555-5555) - Another option is to use the browser’s localStorage
- Whenever a quiz loads, we check the URL to see if those fields exist. If they do, we prefill the form with those values. This way the user doesn’t need to reenter it each time.
You are correct about using Gutenberg. I never switched from Classic and just went straight to DIVI years ago.
But what happens is I create the form and can see the fields on the left similar to what you show above. I save the form and when I come back and edit I just get the image shown.
For what it’s worth, I can’t jump between Form and Block. Again, I am not used to this editor.
I am reviewing the rest of your message above. I would rather not have them login to wordpress but wont rule it out. Let me test that. The “just deal with it” option won’t work as the lead pastor does not like logins to start. I have not even told them about the results plugin yet and figured I would surprise them with it. I am donating this project and even if the results plug-in wont work I wanted to support your efforts.
Dylan, I turned on Gutenberg on the site and it edits and saves like I would expect. No issues. I can toggle between block and form on Gutenberg but I cant with HD forms and as I said, does not seem to save.
In your screenshot, there are no fields to “switch” to, so you only get the “form” settings/sidebar.
It’s also possible that there was a server error or glitch when you originally saved the form, making for junk data. Does it work if you create a new form instead?
No, looks the same if I try to create a new from. The fields are lost.
I just went to another working site and added quiz and HD forms and created a new form with two fields. Click update on top right and nothing happens. Leave the forms and come back and there is not even a form to edit let alone fields.
Update updates the settings for that field. The button you need to click is “SAVE FORM”.
- Add whatever fields you want.
- Select “Form” in the sidebar
- Fill out any form settings you want (only mandatory is email send-to address)
- Save Form
If I’m right, the confusion here is that you think that “Update” is saving the form, when it is only updating your selected field. If this is true, I should rename the button to actually say “update field” instead to help avoid this confusion in the future.
There is no Save button after you save it. Only update. I have already done save.
If you email me, I will set you up a login to a working site to look at if you like.
I just made a quick recording for you. Make sure to enable audio on the video so you can hear my explanations.
Here you go. No audio
You never filled out an email address. That’s why it highlights with a red border.
Ah totally missed that included the red border. I have to come back later and setup customer emails and was just wanting to see if I could integrate a form first.
So on something like an email address you need to switch from Block back to form and add those values. Got it. Thanks
OK, no back to original plan which was to get a working form and walk through your vide as you went.
Thanks Dylan.
Haha, no worries! Glad we figured out it 🙂
Glad “we” figured figure it you.
Um, there was not any WE in that. YOU figured it out 🙂
Thanks again
Dylan,
For this group setting up a wordpress account is not going to work. Everyone finds it too complicated.
So lets explore the “The Harmonic Design / Dylan Way” and see how that works.
Can you point me to the documentation for that?
I assume we will be using HD forms for that as well?
Yes, it will use HDForms.
If you can let me know the IDs of the fields in your form, I can write something up for you later this week.
You can find the ID of each field by editing the form, and selecting the field. The ID will be listed near the top of the sidebar. They will look something like hdf_email_xxxxxx
If that is the case, the next question is that a workable solution long term that I can manage?
Let’s say we start off with a training series next week that has 10 redirects/pages in the series.
Next month we add two more training series. One has 1 page and redirect and another has lets say 5 pages, redirects.
Can all the training sessions we add use the same form? Name and Email address and maybe phone?
You mentioned the field ID. Would that be for all training sessions?
If you use the same form for all the sessions, then there is nothing to worry about.
If you want to change forms each month, or change the fields for that form, then you’d need to do a very minor edit to the code I’ll be giving you each time you want to do this. This will be very easy for you to do, though!
The amount of redirects is irrelevant. Each time a quiz submits, it is saved as its own result. What we are doing here is automating the form so that the user only needs to enter their information once – then the code I’ll be providing you will remember this info and autofill it out each time in the future.
OK sounds like it will work then. I will get you the info you requested. Thanks Dylan.
Rich
I think we will just go with Name and Email.
Name hdf_text_1iug1t
Email hdf form = “987509257”
Anything else you need from me?
Hi Rich,
I previously provided you with code to help with the redirects. We will be replacing that code with this new code.
The only modification you will need to make is the array
const HDQ_HDF_FIELDS = [
"hdf_text_feycq5",
"hdf_email_2o23b5"
];Where you will need to change those field IDs to the IDs of your actual form. Just a note, you previously responded with “Email hdf form = “987509257””. But that is the ID of the Form, not of the email field (assuming you even have an email field in your form).
What this code does:
- When the form loads, it looks at the URL to see if there are any URL parameters that match your given fields. If it has them, it auto fills the form values.
- When quiz completes, we check the score. If the score is not perfect, we change the redirect URL to nothing.
- If the score is perfect, we modify the redirect URL to include the values of the form so that the form can autofill on the new page based on step 1.
Dylan thanks for doing this. Seems to work just fine.
Is this going to send an email for every quiz? As an example if I have Quiz 1 and redirect to Quiz 2 which redirects to Quiz 3, etc. And I have email function turned on, will the user get an email for each one? Some training sessions might have 8 to 10 pages/quizzes so does that mean 8 -10 emails to the user and whoever the admin emails are being sent to?
I tested it but the email function does not seem to be working. Its on a development site so not too worried yet but the development site is using SMTP2Go and all the mail forms are working.
Thank you very much for doing this. Even if it does send 8 to 10 emails I think they can live with it.
Rich
I already got you 🙂
From my original reply:
First as a bonus, edit the settings of the “last” quiz in the chain, and go to the Advanced Tab. Since you have the Save Results Pro addon, you will see a new setting “Enable Save Results Pro Emails”. Make sure this is enabled (it will be by default). In fact, you’ll want to edit each quiz EXCEPT the last to turn off this feature. This is so that you are only sent an email when a user finishes the last quiz, and not for each individual quiz.
As for the emails themselves sending, emails are sent using the default WordPress wp_mail => so if your site can send emails, The SRP addon can as well. Things to look out for:
- Make sure you have your email entered in the “Email addresses to send results to” field
- Make sure that if you are changing the “Sent From Email”, the email you have entered belongs to the same domain. This includes subdomains. Otherwise, your emails will probably be blocked.
- Check spam folders
- As a test, you install an email logger plugin. WP Mail Log looks good
Thanks Dylan,
I have not had reliable results with WP mail regardless of host for the last 10+ years so I try not to use it. I did install WP Mail Log and although it logs the email I really do not see anything that would indicate if it was successful or not. I had one unsuccessful to start and then one successful and both logs look the same.
I do have it successfully sending to the admin but even though I have “send results to quiz taker” turned on that does not seem to work. I have tried a couple external email addresses and have not found any that receive the email. I am using the same domain for send from email.
I am not sending Full expanded results but the email sent to the admin still shows the results for whatever was on last page. Is there anyway to turn that off? Just not accurate if they just finished 10 pages with 3 questions each and the final email shows 3/3 score.
Hi Rich,
The amount of redirects is irrelevant. Each time a quiz submits, it is saved as its own result.
Because each is its own result, the final email will always only contain the data from that last quiz. However, like all things I do, HD Quiz SRP is also very extendable.
That code will remove the actual results from the emails.
For sending emails, I really don’t have a lot of control over this. All I can do is send the email. The rest is dependent on your server and DNS settings.
Something to take a look at is the HDForms section of the SRP settings. The HDForms email ID needs to be filled out with the proper ID. This is how we know what email address to send the results to if you are sending to the quiz taker.
Everything is working Dylan.
“The HDForms email ID needs to be filled out with the proper ID” is key to it working 🙂
I had not added anything there yet. I must have missed that.
So a couple minor things that I can live without.
I assume it’s probably easy to change the quiz button “Finish” to “next”? If you are redirecting pages “finish” does not seem appropriate, but in my environment “next” would not be out of place even on the last quiz because I am directing them to af final page without a quiz.
In SRP you have Email content before (intro content) and then Email after before (footer content). I assume you can’t use IDs in that area ?
So as an example the Email content before could say “name_ID” has completed the below training program. This is not really a big deal and worth much effort.
The final thing I think I will have to live with. If you are going through a series of training/quizzes and you get one wrong and have to retake the quiz it dumps the form data. Happens with both with your additional functions.php code and my method of putting a link the the quiz fail content. I doubt that is something easy to change and not a big deal. Thats what they get for missing a question 🙂
Oh boy, do I have good news for you!
If you go to HD Quiz → Settings, then select the Translations tab, you can rename/translate all front-facing aspects of HD Quiz. In your case, as counter-intuitive as it might seem, you can rename the Finish button to: “Next”, “Next page”, or “Next Quiz” etc.
As for the email content and having IDs there. Finally, you have asked me something where my answer is “Sorry, not possible” haha. BUT, I think it’s a great idea, so I’ll think of adding it to the next version of the addon.
And lastly, the retake quiz function. The one I wrote for you was before the whole “save the form to the URL” thing. So I would need to modify it to also include the Form Fields in the url. Totally possible, but to be blunt – it’s getting late on a Saturday, so I’ll have to send you an update to that either tomorrow or Monday.
NOTE: Also just something I thought of. Make sure you have “Only send email to passed quizzes” enabled on the Email tab of the SRP settings. Otherwise, the email will send even if the user fails.
Awesome, I am old so going to quote something from “The A-Team”.
I love it when a plan comes together 🙂
Thanks for all your help. This should work great for their needs.
Cant thank you enough Dylan.
Rich
I previously provided you with the following code to automatically add a Retry Quiz link to the results.
We are going to do a very small modification to that code to give the link a unique ID. This will make the next step a lot easier.
Replace the line:
<p style="text-align: right;"><a href="<?php echo get_the_permalink(); ? rel="nofollow ugc" rel="nofollow ugc">">Retry Quiz</a></p>
With:
<p style="text-align: right;"><a href="<?php echo get_the_permalink(); ? rel="nofollow ugc" rel="nofollow ugc">" id = "hdq_retry_link">Retry Quiz</a></p>
Now we are going to update/replace the other code I previously provided to do the prefill and redirect with this:
And that should work! Now, when a user selects the retry quiz link, the URL should include the form data as well.
Dylan, I was not running code for the retry but would like to try it.
I understand the larger amount of code goes in the functions.php
Where does this go?
<a href="” id = “hdq_retry_link”>Retry Quiz
Sorry, I cant find that thread
That did not paste correctly.
But just above where you said Replace … with…
Dylan, looking back at that I think it also went in the functions.php file.
But when I try to do so and save, I get the following error.
Your PHP code changes were not applied due to an error on line 9135 of file wp-content/themes/Divi/functions.php. Please fix and try saving again.
syntax error, unexpected token “?”
Hi Rich,
sorry about that. WordPress sanitized the closing PHP from my comment and I didn’t notice.
I updated the main code block for you to keep everything together and easier to read.
I added that and there are no errors but its not passing the form data from page 1 to page 2 after answering correctly.
You can see it here:
https://www.clickiowa.com/capcityconcept/training-city-group-facilitators-1/
Correct answers for this test training is True, Joe’s Blend and Joy
You need to update the field names again HDQ_HDF_FIELDS
Can you add the face palm emoji to this forum???
That seems to work perfect. I need to take out my code for failed test and make a couple tweaks.
Thank you very much. I think this is now 100% and better than what they expected 🙂
Rich
One thing we never addressed. I mentioned it above and don’t think we got to it.
Can you edit what is sent in the email? Template or something?
The only thing that is odd is it shows the quiz results 3/3 in this case after going through several redirects with 3 questions each. Just showing the results of the last quiz. The 100% part is fine because we do not allow them to proceed without getting all questions right.
Already responded to that in a message above 🙂 Here is the code again:
Thanks Dylan
Dylan
Reviving an old thread since you helped me make several changes that may affect the issue I am having. Probably something I missed.
The first quiz is working great but sending to my admin email address and not the “Send to email address” under HD forms.
What do I need to look for?
Rich
Hi Rich,
do you have any SMTP or email plugins installed? Some of them have settings that override the sendfrom names and address’.
Also make sure you have the correct email inputted to the Save Results Pro settings. It will be under the Email tab of the settings.
Dylan,
I do have a SMTP plugin and can disable that next but just noticed under Save Results Pro>Settings I am getting the following.
Results
Settings
There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.
Learn more about troubleshooting WordPress.
I have it working but had to downgrade PHP to 7.4. I went back to 8.x and it kept working briefly and stopped so went back to 7.4
As far as the correct email in Save Results Pro Settings, I thought the form emails over-rode this? It was my intention to send emails to different people based on which quiz it is. Will this not work?
Rich
Hi Rich,
you cannot send the results to different email accounts on a per-quiz basis, but I do have a filter called hdq_srp_sendto. We can use this to change who we send the email to based on the resultId. I’ll write something up for you today or tomorrow.
However, using your email provider, you can almost certainly create “filters” for emails. You can check to see if you can create filters based on a message body. If so, you can set up a filter to look for the quiz name, and auto forward that email to whatever account you want.
I cannot provide instructions on how to do this though as it would be different depending on who your email provider is (example, cpanel, office365, gmail, etc), but it’s an option you can look into.
As for the iPad issue, all HTML created by HD Quiz is printed by your server. This means that it is literally impossible to get different output on your computer than on an iPad, or any other device.
Things to look into:
That message means that there is no “question type” saved for the question. Try editing the errant questions and saving again so that we know that all required data is present. It’s possible that there may have been a mistake or issue migrating your data from whatever dev site you were building on, and the live site.
The second thing to look at, is, as always, caches. Clear out the server/site caches to make sure that you yourself are seeing the fresh live version, and also recommend your ipad users clear their browser caches as well. Apple devices are notorious for aggressively caching everything. Perhaps that site was using an old version of HD Quiz, which has since been updated. But the apple users still have the old version cached.
I think I would prefer trying to filter it on the Google Workspace server.
You are correct. I assumed it was related to ipad as the first iPad user complained about it and we tested with another iPad user. I recently switched the site to a GoDaddy “wordpress” hosting plan off my VPS and it probably started then as its doing it on everything.
How do I resolve?
Ignore the last. It dumped the answers in the migration. But I need to upgrade php to 8.2. Any issues you know of with newer PHP?
There should be no PHP compatibility issue. I myself use php 8.4.4.
Here is the small custom code you can use to change the sending address based on the quiz ID
You’ll need to edit the $data array to represent your quiz ids, and emails you want to send to.
You can get the ID of your quiz by looking at the shortcode. So for example, if your quiz id is 40, then you can set
$data[40] = array("[email protected]");
Hope this helps!
I will try this.
Regarding the PHP. HD Quiz – Save Results Pro > Settings will not display when running 8.x version of PHP. Maybe something is not built into that package but I need to resolve it. Works fine with 7.4
Rich
Probably a missing extension, but if you enable WP_DEBUG that will give us the answer we need.
If you edit wp-config.php (located in the installation folder of WordPress, you can look for WP_DEBUG and set it to true. Then check to see if you get an actual error message. Just remember to turn off debug mode once done!
I will do that. Right now I have it running on 7.4 so I can see results.
Here is the error
Warning: Trying to access array offset on value of type bool in /dom411750/wp-content/plugins/hdq-save-results-pro/includes/table.php on line 235
Deprecated: Automatic conversion of false to array is deprecated in /dom411750/wp-content/plugins/hdq-save-results-pro/includes/table.php on line 235
Warning: Undefined array key “user” in /dom411750/wp-content/plugins/hdq-save-results-pro/includes/table.php on line 243
Fatal error: Uncaught TypeError: join(): Argument #1 ($array) must be of type array, string given in /dom411750/wp-content/plugins/hdq-save-results-pro/includes/table.php:243 Stack trace: #0 /dom411750/wp-content/plugins/hdq-save-results-pro/includes/table.php(243): join(‘ ‘, NULL) #1 [internal function]: usort_reorder(Array, Array) #2 /dom411750/wp-content/plugins/hdq-save-results-pro/includes/table.php(258): usort(Array, ‘usort_reorder’) #3 /dom411750/wp-content/plugins/hdq-save-results-pro/includes/table.php(325): HDQ_SRP_TABLE->prepare_items() #4 /dom411750/wp-content/plugins/hdq-save-results-pro/includes/table.php(344): hdq_srp_render_list_page() #5 /dom411750/wp-content/plugins/hdq-save-results-pro/includes/settings.php(70): hdq_a_srp_print_results() #6 /dom411750/wp-includes/class-wp-hook.php(324): hdq_srp_options_page(”) #7 /dom411750/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #8 /dom411750/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /dom411750/wp-admin/admin.php(260): do_action(‘hd-quiz_page_hd…’) #10 {main} thrown in /dom411750/wp-content/plugins/hdq-save-results-pro/includes/table.php on line 243
There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.
Interesting. It looks like this might be do to your migration. The addon is expecting data to be there that was lost during the migration.
The reason it works with PHP < 8 is because PHP 8+ is much more… strict about things like this. Instead of auto converting the data, it will just fail instead.
Out of curiosity, if you use PHP 7 and then save the settings, does PHP 8 now work? If not, I'll do some debugging on my end and try and get a fix for you.
I have toggled back and forth between 7 and 8 several times and 8 still does not work. The only way I can see results is by going back to 7.x.
Also the code you included above goes in functions.php correct?
I have been unable to get that to work yet but would rather get this issue resolved first.
Thanks!!
Hi Rich,
I just did some debugging and can confirm that those errors are there because you are missing data that the addon is expecting.
As I said before, the reason it works with PHP7 and not 8 is because 8 is more strict about how it deals with data.
I just made an update to the addon (you can download it from your account page, or wait for the update to show up on your plugins page). It will hopefully fix this for your use case, but let me know if it still doesn’t (and provide updated error messages if possible).
Annnd finally, yes, that code goes into your functions.php file.
I fully tested it before providing, so it will work as long as:
- you are using a recent version of the addon
- you are using the correct quiz ids
- you are setting the correct emails
I just updated the plugin to 1.6.6 and switched to PHP version 8.2 and still have the same issue with critical error.
As far as the additions to functions.php if I remove that code it sends to my default email just find but if I add it again I get nothing.
The quiz page I am trying to send email from has:
This quiz no longer existsThe functions PHP addition includes:
/ Change sendTo based on QuizID /
function hdq_srp_change_sendto_based_on_quizID($sendTo, $result_id)
{
// get the quiz id
$quizId = intval(get_post_meta($result_id, “hdq_srp_quiz_id”, true));
// UPDATE THIS LIST with pairs of quiz ids and emails
$data = array();
$data[127] = array("[email protected]");
if ($data[$quizId]) {
return $data[$quizId];
}
return $sendTo;}
add_filter(“hdq_srp_sendto”, “hdq_srp_change_sendto_based_on_quizID”, 10, 2);
When removing your other examples did I remove too much?
Rich
Assuming the quizId is correct, your code looks accurate.
This quiz no longer exists means that… the quiz with the ID you chose doesn’t exist. This is, once again, indicative of an incomplete or corrupted import from when you migrated.
Basically, when you migrated, things like the quiz ids must have changed.
I recommend the following:
- Edit each of your quizzes and resave. This is to ensure that quiz data is all there.
- Edit the pages with your quizzes, and add the quizzes in again using either shortcode or Gutenberg block. This is to ensure we are using the updated quiz ids to display the quizzes.
- view the page and make sure the quiz is actually loading
- now you can edit the code again and make sure you are using the correct ID.
I am just focusing on one page which is the last quiz in a series. It is the one that should send the email. I went in and made some edits to the answers and saved. The quiz loads and functions perfectly. Just stops sending emails when I add that last snippet of code you sent.
I re-added the shortcode to the page and the ID was the same.
I tested again on both versions of PHP and still does not work.
Next, I am going to create a quiz from scratch on a seperate test page and see if starting from beginning works
Good idea on trying with a fresh quiz – hope that works.
Also, just to be clear, it’s not the answers that would need to be resaved (although you had issues there before too, so not a bad idea to resave each of them), but the quiz settings as that seems to be where the issue lies.
Not the email issue, but the PHP issue could be the saved result data as well. If you still encounter issues, an idea would be to use PHP7, export your current results, then delete all existing results, then use PHP8.
For the email, I recommend installing an email logger plugin. This will let you know if A) the email was sent, and B) to what address.
WP Mail Logging seems to be a good free plugin for this.
Dylan, I think I worked everything out but have an issue that has probably been there since the beginning. First of all, you mentioned corrupt tables so I went back to an older archive, rectified that and moved back to my VPS so I could configure PHP the way I wanted.
Now the “new” issue which testing old archives appears to have been there since the beginning.
I am running Divi builder and have header and footer templates set up in the Divi Builder. I am having an issue with links in the footer. I even tried absolute links with no luck. The issue is this.
I can go from the home page to any link in the footer just fine. But if I try to click a link from another page its an invalid URL.
So from homepage if I click on the footer calendar link it works. But if I try to click another link in footer it adds the current page to the URL. So as an example of I click the training link when I am on the calendar page I get /calendar/training instead of training. Even adding absolute URLs does not help.
Here is where you come in.
I can enable HD forms plugin and my links work. But as soon as I activated HD Quiz, the links breaks in the footer.
Thoughts? I need the Quiz running so I am currently running with bad links in footer. I might do a quick redesign and just remove the links till I resolve the issue
Sounds like you have quite the web to untangle.
What I can say is that neither HD Quiz nor HDForms should have any affect on permalinks – neither of those have “archives” – meaning they do not have URLs, show in sitemaps, etc.
My advice would be to: (this is assuming your server is Apache – else do whatever the equivalent in NGINX is)
- enable whatever plugins you need
- Rename your
.htaccessfile (located inpublic_htmlfolder on server. You may need to enable “hidden files” to see it) - log into your site and go Settings -> Permalinks. Resave this page (you don’t need to change any settings, but saving will force WordPress to refresh your permalinks, and automatically recreate your .htaccess file)
Web to untangle 🙂 Excuse the pun right?!
I have already done those things. I moved a copy of site to a development domain and deleted all the plugins on the site except yours.
I have wiped the .htaccess (which was basically default) and resaved permalinks and my links in footer do not work if your plugin is enabled. Disable it, and the links work perfectly. I just thought about the additional code I have added in the functions.php so I went and removed that and no change. Footer links will not work as long as your plugin is active. Makes no sense to me. Tomorrow, I will try and delete your plugins and reinstall from scratch and before setting up any quiz see if I have same results.
Only bad puns need to be excused 😀
That’s interesting. I think the issue is actually with the link structure you are using itself.
For example, WordPress reserves certain words for itself that are needed. Things such as page, id are structures that are needed by wordpress, so you cannot easily use them in your url structures.
What might be happening is that your url structure is using something that WordPress needs for the quiz taxonomy.
If you rename the page/permalink (and the corresponding footer link) to something generic like abcde, does it work?
I have a feeling your link looks something like domain.com/quiz/something. I think that on your site, it’s the quiz part of the structure that might be the problem. If you make it something like domain.com/quizzes/something it might work.
Dylan, I dont think it has anything to do with the name which in my case is domain.com/training.
Because it’s not just the training link. Its any link.
Example:
Starting at home page if I click on the calendar link in footer I end up at domain.com/calendar. Then if I click on the staff link in footer I end up at domain.com/calendar/staff
All the links work in footer from the root of site. But once off the root the link is adding the current page to the path.
Makes no sense to me. But as soon as I disable your plugin it works.
I am currently uploading another fresh copy of the site to a development server so I can do a little more hacking. I “over” hacked my last version 🙂
Ah gotcha!
Super weird – it HAS to be some kind of corruption somewhere. HD Quiz very much does not affect permalinks.
Some advice that might be helpful.
It looks like your footer links use relative paths, when they should be absolute.
It’s the difference between using /training and https://domain.com/training.
I’d recommend either just hardcoding the full urls you need, or if you still want it to be dynamic, you can use wordpress home_url() function. so something like this:
Actually, I started out with relative and yesterday I changed them to absolute. All the links in the footer are currently absolute.
I am getting ready to build a new temp footer on the development test site.
Building a new test footer works and your plugin no longer conflicts. I am not aware of any special code in that footer but going to dissect it on the development server and see if I can find out what the issue is. But my test unformatted footer works fine. I just need to build a formatted version now to replace the one I have.
This thread has either been marked as complete or has been automatically closed due to inactivity. Please consider opening a new support thread for help.