Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author James Mehorter

    (@jamesmehorter)

    I’m going to guess that PHP Sessions are disabled on your server (which DTS relies on for that specific functionality). Stay tuned, we’ll be releasing a new version shortly which no longer uses PHP Sessions.

    Though, If you don’t want to wait, you can grab the beta version from Github here, which uses Cookies instead of Sessions: https://github.com/jamesmehorter/device-theme-switcher

    Plugin Author James Mehorter

    (@jamesmehorter)

    PHP Sessions were replaced with cookies in the plugin in version 2.5, please update and let me know if your issue disappears.

    Thread Starter itsbasta

    (@itsbasta)

    Hello, your plugin now trigger this warning when I go from the mobile version to the full website version, I could hide the error since it still work but its better to fix that :

    Warning : Cannot modify header information – header already sent by outpout : …inc/class.switcher.php on line 176.

    Also, on Iphone the bug I told you earlier is still there. So it was not related to cookie or session I think.

    Plugin Author James Mehorter

    (@jamesmehorter)

    Can you please copy/paste the complete PHP Warning?

    And, do you receive any other PHP warnings regarding cookies?

    Thread Starter itsbasta

    (@itsbasta)

    There is the complete error from the error.log :

    [15-May-2014 15:19:45 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/my_rep/public_html/wp-content/plugins/device-theme-switcher/inc/class.switcher.php:1) in /home/my_rep/public_html/wp-content/plugins/device-theme-switcher/inc/class.switcher.php on line 176

    I cant find others errors in the logs.

    I ended up with the dreaded “Cookies Are Blocked Due To Unexpected Output” at my login screen after the latest update, preventing me from getting into my site. Thankfully, I had DTS installed but not yet activated.

    For those that might have the same problem, I FTP’ed into the server and renamed the plugins folder, which let me log in. After restoring the plugins name, I deactivated DTS, and it cleaned up the issue.

    Just passing the info along.

    Plugin Author James Mehorter

    (@jamesmehorter)

    Please provide details about your hosting setup/plugins used(w versions)/ and another info which will let me mirror your exact setup to locate the issue.

    I am having the same issue.
    Version 2.7 … no plugins installed.

    https://casa.projectmonkey.ca/?theme=handheld

    Warning: Cannot modify header information – headers already sent by (output started at /home/monkey/public_html/casa/wp-content/plugins/device-theme-switcher/inc/class.switcher.php:1) in /home/monkey/public_html/casa/wp-content/plugins/device-theme-switcher/inc/class.switcher.php on line 176

    FYI … class.switcher.php file … line 1 … you have a space before <?php … ack!

    Plugin Author James Mehorter

    (@jamesmehorter)

    @jontroth – I am unable to replicate this issue in my setup (no warnings regarding an inability to modify header info). I also see that space before <?php .. does removing that space cause the warning to go away for you?

    Hi James,
    The white space was causing the issue for me. Once removed everything was working well. Thanks for the great work on the plugin BTW … ??
    Jon

    Plugin Author James Mehorter

    (@jamesmehorter)

    Thanks @jontroth! I’ll add this to the next version (releasing later today hopefully). I was really hoping someone who could reproduce the warning would post something just like this! Thanks! ??

    Plugin Author James Mehorter

    (@jamesmehorter)

    @itsbasta, @frogsplash, & @jontroth — I’ve released DTS 2.8 which removes that pesky whitespace and should correct this issue for you all. Please update asap, and if you don’t mind, please post back here confirming if the update corrects the issue for you. Thanks for your patience!

    Perfect! Working great. Thank you. ??

    Bingo. Nice find, jontroth!

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Navigation in full website mode redirect to mobile theme (iPhone only)’ is closed to new replies.