#37380 closed defect (bug) (fixed)
Undefined variable: usingpi / Undefined variable: writable / Undefined variable: update_required
| Reported by: | andreasneuber | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Permalinks | Version: | 4.6 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Happens with 4.6-beta3-38065
Steps
1.Fresh WP
2.Login
3.Go to Settings > Permalinks
4.Press "Save Changes"
5.Check debug.log
debug.log has these entries
PHP Notice: Undefined variable: usingpi in /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php on line 113
PHP Stack trace:
PHP 1. {main}() /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php:0
PHP Notice: Undefined variable: writable in /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php on line 113
PHP Stack trace:
PHP 1. {main}() /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php:0
PHP Notice: Undefined variable: update_required in /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php on line 113
PHP Stack trace:
PHP 1. {main}() /var/www/html/tmp_phpnotices_60/wp-admin/options-permalink.php:0
My environment
-Apache/2.4.7 (Ubuntu)
-PHP version: 7.0.8-4 / Apache 2.0 Handler
Attachments (2)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi there, and thanks for the report!
This is indeed introduced in 4.6-beta3, with revision r37747
The attached patch moves the definition of
$usingpito be available before the IF block.