any ideas you have for troubleshooting this would be welcome. When a visitor to the site attempts to submit a rating, the response page throws an error like this: Fatal error: Call to a member function fetch_param() on a non-object in {native EE codebase file} on line XXX
I have two instances of this error, here are the codes from the lines referred to in the Fatal error alert:
$result_page = ( ! $TMPL->fetch_param(’result_page’)) ? ‘search/results’ : $TMPL->fetch_param(’result_page’);
if ($TMPL->fetch_param(’related_categories_mode’) == ‘on’)
This only occurs after a visitor submits a rating.
The rating does in fact get written to the database, but the thank you page does not load and the Fatal Error alert is the only thing returned by that page—no template code output, no EE super admin debugging messages available.
Here are the hidden form fields, if that makes any difference.
<form id='rating_formbudget_savvy' name='starrater' method="post" action="http://[DOMAIN]/videos/budget_savvy/" >
<div class='hiddenFields'>
<input type="hidden" name="ACT" value="21" />
<input type="hidden" name="RET" value="http://[DOMAIN]/videos/budget_savvy/" />
<input type="hidden" name="URI" value="/videos/budget_savvy/" />
<input type="hidden" name="PRV" value="" />
<input type="hidden" name="XID" value="ebe17263eee73198f15a73f299606f3764c53b9b" />
<input type="hidden" name="entry_id" value="71" />
<input type="hidden" name="form_name" value="starrater" />
<input type="hidden" name="status" value="open" />
<input type="hidden" name="anonymous" value="y" />
<input type="hidden" name="allow_duplicates" value="y" />
<input type="hidden" name="user_template" value="notify_admin" />
<input type="hidden" name="admin_template" value="notify_admin" />
<input type="hidden" name="required" value="name|email" />
<input type="hidden" name="return" value="http://[DOMAIN]/videos/rating-thanks/" />
<input type="hidden" name="template" value="videos/;rating-thanks" />
<input type="hidden" name="site_id" value="1" />
</div>
I will now go look for a utility that will help me step through the execution of the code for this page.
I am not asking you to solve this, however if any ideas come to mind—some pattern as why those to member functions calls fail, that would be great. thanks!