Forum Moderators: phranque
I have just upgraded my website from Dolphin 5.3 to 5.4 and since then, no-one has been able to join. They get the following message:
Parse error: syntax error, unexpected ')' in /home/......./public_html/join_form.php(241) : runtime-created function on line 1
Fatal error: Call to undefined function: () in /home/......./public_html/join_form.php on line 242
Here is the section of join_form.php in question:
234..........$respd = db_res("SELECT * FROM ProfilesDesc WHERE `visible` & 2 AND ( FIND_IN_SET('0',show_on_page) OR ..............FIND_IN_SET('".(int)$_page['name_index']."',show_on_page)) $join_page_check_limit $profile_type_add AND `join_page` > 0 .. ORDER BY `.............order` ASC");
235..........while ( $arrpd = mysql_fetch_array($respd) )
236..........{
237..........if (!strlen(trim($arrpd['check'])) ) continue;
238..........$fname = get_input_name ( $arrpd );
239..........
240.......... $funcbody = $arrpd['check'];
241...........$func = create_function('$arg0', $funcbody);
242..........if (!$func($p_arr[$fname]))
243..........{
244..........$page = floor($arrpd['join_page'] / 1000);
245..........$add_on .= report_err( _t($arrpd['because'], ... $arrpd['min_length'], $arrpd['max_length']) );
This message is appearing on the server of the webhost:
mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
This is beyond my knowledge. Can anyone help me please? It's extremely urgent as possible new members are being turned away.
It's not your Apache configuration that is in error here, it is the server-side code that needs attention -- and by the looks of it, quite a bit of attention. For the time being you might be better off reverting to the earlier version of the software being used while the code is addressed.