Bug #2871
closedNon returning call : pfSense_get_modem_devices() called by interfaces_ppps_edit.php?id=1
0%
Description
When setting up a PPPoE WAN on interfaces.php?if=wan
, there is an option (which also existed in 2.0.1) to set up advanced PPPoE settings, which opens the link interfaces_ppps_edit.php?id=1
.
However this link never opens, it hangs displaying "connecting to server". It's the only page in v2.1 which does this that I've found, and worked fine in 2.0.1. It also hangs in Firefox and IE9. So it's an issue of this specific page.
I added crude but workable code in the page to try and pin down where it was hanging: syslog(LOG_CRIT, "<ID>"); log_error("<ID>");
The hanging issue traced to this point:
<tr style="display:none" name="portlists" id="portlists"> <td id="serialports"><?php $xx = "a1"; syslog(LOG_CRIT, $xx); log_error($xx); $selected_ports = explode(',',$pconfig['interfaces']); $xx = "a2"; syslog(LOG_CRIT, $xx); log_error($xx); if (!is_dir("/var/spool/lock")) mwexec("/bin/mkdir -p /var/spool/lock"); $xx = "a3"; syslog(LOG_CRIT, $xx); log_error($xx); $serialports = pfSense_get_modem_devices(); $xx = "a4"; syslog(LOG_CRIT, $xx); log_error($xx); $serport_count = 0; foreach ($serialports as $port) { $serport_count++; echo $port.",".trim($port); if (in_array($port,$selected_ports)) echo ",1|"; else echo ",|"; } echo $serport_count; $xx = "a5"; syslog(LOG_CRIT, $xx); log_error($xx);
The system log consistently showed as follows when I saved this temporary kluge and clicked the link:
Mar 12 22:09:06 php: a3
Mar 12 22:09:06 php: a2
Mar 12 22:09:06 php: a1
Mar 12 22:06:32 php: a3
Mar 12 22:06:32 php: a2
Mar 12 22:06:32 php: a1
Mar 12 22:01:23 php: : Creating rrd update script
I can't pin it down further (no c compiler etc), but the call to pfSense_get_modem_devices()
isn't returning where it did in 2.0.1, causing browser load of interfaces_ppps_edit.php?id=1
to hang.