WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 9 years ago

#15832 closed defect (bug) (duplicate)

Adding a char at beginning of "WordPress address URL" (siteurl) "destroys" blog

Reported by: piuzito Owned by:
Milestone: Priority: normal
Severity: major Version: 3.0.3
Component: Administration Keywords: siteurl
Focuses: Cc:

Description

WP installed in a subdomain

  1. In Admin go to "Settings > General"
  2. Add for example "a" to the beginning of the "WordPress address (URL)" (siteurl)
  3. Click "Save Settings"
  4. It gives the following errors:

Warning: strpos() [function.strpos]: Empty delimiter in /home/USER/public_html/blog/wp-admin/includes/file.php on line 76

Warning: strpos() [function.strpos]: Empty delimiter in /home/USER/public_html/blog/wp-admin/includes/file.php on line 76

Warning: Cannot modify header information - headers already sent by (output started at /home/USER/public_html/blog/wp-admin/includes/file.php:76) in /home/USER/public_html/blog/wp-includes/pluggable.php on line 890

Then if going back and click for example again on "Settings > General" it gives a screen with this error:

"One or more database tables are unavailable. The database may need to be repaired."

...

Checking the database the "siteurl" (in wp_options table) was blank (empty) - adding the URL to the "siteurl" (directly in DB) solved the problem.

Change History (2)

#1 @SergeyBiryukov
10 years ago

What is the expected behaviour in this case?

#2 @nacin
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

See #10970.

Note: See TracTickets for help on using tickets.