Backie
Forum Replies Created
-
This is along shot. The only thing I can think of is, assuming you’re using the file system to store the session data. Mabye there is an error there such as too many read/writes happening so PHP skips it or something. Mabye try using MEMCACHE for sessions.
To be honest from the randomness sounding of this error, I think it may be a PHP issue. Try logging a var_export of get_defined_vars(). See if anything there is constantly the same.
Hi,
Well I am planning of leveraging WordPress’s Plugin system to make it alot easier to modify and extend the plugin. This will most likely be done next month.But for now, the quickest way of doing it may be editing the page view and leveraging the not really well documented custom page functionality. Where you can copy over the page views and edit them directly to change the lookout. Since these are php you can add a simple notification system within one of those with realitive ease.
Hey,
Sorry for the delay, but looking at code and thinking it may be possible that the error is caused by the user not having cookies enabled. The if check that would catch it in your code doesn’t seem to catch it since your doing an if $step == 0 then in that clause checking if $step !== 0.I did try the other day to see what error message I would get on that install with no cookies and I got an error happened try again, if you’re logging errors and see an hostname with iain something fubra .com|.net (forgot my hostname in the office) then that will be the issue.
So
$_SESSION['wpsqt']is set and$quizNameis set? But$_SESSION['wpsqt'][$quizName]isn’t?Also is your
$step == 0if the same as below (including the if statement below)?if ( $step == 0 ){ if (isset($_SESSION['wpsqt'][$quizName])) unset($_SESSION['wpsqt'][$quizName]); $_SESSION['wpsqt'][$quizName] = array(); $_SESSION['wpsqt'][$quizName]['start'] = microtime(true); $_SESSION['wpsqt'][$quizName]['quiz_details'] = $wpdb->get_row( $wpdb->prepare('SELECT * FROM '.WPSQT_QUIZ_TABLE.' WHERE name like %s', array($quizName) ), ARRAY_A ); $_SESSION['wpsqt'][$quizName]['quiz_sections'] = $wpdb->get_results('SELECT * FROM '.WPSQT_SECTION_TABLE.' WHERE quizid = '.$_SESSION['wpsqt'][$quizName]['quiz_details']['id'], ARRAY_A ); $_SESSION['wpsqt'][$quizName]['person'] = array(); $_SESSION['wpsqt']['start'] = microtime(true); } if ( empty($_SESSION['wpsqt'][$quizName]['quiz_details']) && $step !== 0 ){ echo 'Error, sessions, failure. Please check your PHP Settings.'; return; } elseif (empty($_SESSION['wpsqt'][$quizName]['quiz_details'])) { print 'No such quiz.'; return; }Only thing I can think of is trying logging var_export of
$_SESSION['wpsqt'][$quizName]['quiz_details']['status']to see what value it has.Should be fixed in 1.3.20
Are you on the latest version? Pretty sure I fixed this error in that version if not, I’ll have a look tomorrow.
Hi, sorry didn’t notice this earlier. I suspect this is just a problem with me not selecting the data and that it has actually saved. I’ll check the code.
Edit
Yea, that’s the case, if you look at lines 50ish in pages/admin/survey/create.php you’ll see $surveyDetails[‘”send_email”‘] instead of $surveyDetails[‘send_email’]; I’ll upload a new version in a few days when some other bugs are fixed.
It only has instant or none at all. Noone has really cared about the survey functionality so far so it’s pretty weak.
Fixed, whole survey system seemed to be broken. Oops. 1.3.19 should appear on plugin page soon.
Looked into this. Changed the SQL to reflect the settings.
Hi,
Easier way to fix this “bug” would be change the setting in the section configuration from “random” to ascending or descending order.I’ve added that onto the request list.
What option have you enabled? View results or view Review?
%USERMETA_{METANAME}% << is that exactly what you are using? If so that’s the cause. {METANAME} is to be replaced with the name of the user meta. If not what is the user meta you are using?
I’ve had a few complaints of this very error. But it’s caused by using PHP4. Upgrade to PHP 5.