• Resolved elfin

    (@elfin)


    I’m currently unable to test my own plugin (eshop) on my test site: https://eshop.quirm.net/. Here is the snipper of code I’ve narrowed the problem down to:

    if(get_option('eshop_checkout')!=''){
     if( $wp_rewrite->using_permalinks()){
      //$p->autoredirect=get_permalink(get_option('eshop_checkout')).'?action=redirect';
      $p->autoredirect=$this_script.'/index.php?page_id='.get_option('eshop_checkout').'&action=redirect';
     }else{
      //$p->autoredirect=get_permalink(get_option('eshop_checkout')).'&action=redirect';
      $p->autoredirect=$this_script.'/index.php?page_id='.get_option('eshop_checkout').'&action=redirect';
     }
    }

    The $p->autorediect is then added to the action part of a form. eg.
    <form method="post" action="https://eshop.quirm.net/index.php?page_id=4&amp;action=redirect">
    Until today the plugin has been working fine with the 2 commented out lines, but it appears something has changed somewhere, and I have tried many variations before coming up with the change above. But surely there must be something else wrong.

    recently my web hosting went over to php 5 – could this be why the original code no longer works? Or could it be an apache setup difference?

    I really am at a loss as to why my original code is no longer working. Especially as it works locally!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter elfin

    (@elfin)

    **UPDATE**

    also happening on a live site, and that was working until a few days ago so I’m now fairly certain this is a server issue.

    Thread Starter elfin

    (@elfin)

    Well its fixed, but not sure how or why.

    Updated affected site to wordpress 2.6.1 via fantastico.

    Debugged the plugin, though that is difficult with all the wordpress errors that come up…

    Changes were mainly undeclared variables, but it wasn’t affecting other sites with the same setup – which was why I was stumped.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP issue, or server issue?’ is closed to new replies.