Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1019 closed defect (fixed)

Can't use plugins in subdirectories when magic_quotes_gpc is on.

Reported by: nightgunner5 Owned by:
Priority: high Milestone: 1.0
Component: Administration Version: 1.0-rc-2
Severity: normal Keywords:
Cc:

Description

On localhost (I have a Windows computer), I cannot activate the BBXF Import/Export? plugins. The Akismet and Bozo plugins both allow activation, but the BBXF plugins give the following error message:

Your attempt to do this has failed.

Please try again.

Back to The Official LlamaSlayers Forums.

bbPress - simple, fast, elegant

I'm thinking this has something to do with Windows' way of using backslashes instead of normal slashes.

Attachments (1)

no-backslash.patch (649 bytes) - added by nightgunner5 4 years ago.
Needs testing, but this will probably fix a lot of Windows-based problems

Download all attachments as: .zip

Change History (12)

I almost have a setup ready where I can debug this.

  • Milestone set to 1.0-beta & XML-RPC
  • Milestone 1.0-beta deleted
  • Resolution set to worksforme
  • Status changed from new to closed

OK, tested and it works for me on Windows 2000 Server using IIS.

More details required from reporter.

  • Resolution worksforme deleted
  • Status changed from closed to reopened
Windows XP SP3
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.9
magic_quotes_gpc On
magic_quotes_runtime Off
magic_quotes_sybase Off

If you need any more information, ask.

  • Milestone set to 1.0-beta

Compare these two functions: WP BB

WordPress forces all slashes to be forward, but bbPress does not.

Needs testing, but this will probably fix a lot of Windows-based problems

  • Keywords has-patch needs-testing added
  • Keywords has-patch needs-testing removed
  • Summary changed from Windows host can't use plugins in subdirectories. to Can't use plugins in subdirectories when magic_quotes_gpc is on.

There's no telling what that patch might do elsewhere...

The problem is with magic_quotes_gpc it is evil, turn it off.

I'll try to work around this problem somehow anyway.

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [2077]) Stripslashes on plugin location because magic_quotes_gpc is evil. Fixes #1019

  • Milestone 1.0-beta deleted

Milestone 1.0-beta deleted

  • Milestone set to 1.0

I have a localhost on a Windows computer as well and encountered this problem; I did not have any of the magic_quotes options enabled in PHP.

Nightgunner's patch worked for me on my localbox.

Note: See TracTickets for help on using tickets.