• I have this block of codes that was running earlier fine but now giving strange error.

    [insert_php]
    function g($pn) {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "snthostings.com/billing/get_stocked_product.php?box=" . $pn);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $output = curl_exec($ch);
    curl_close($ch);
    return "/billing/cart.php?" . $output;
    }
    [/insert_php]

    [insert_php]print(g('SnTRDP%20-%2010GB%20-%20NORMAL%20-%20BROWSER%20ANONYMITY'));[/insert_php]

    Initially what this code used to do was fetch link from cart.php depending on what order is available, but now it is giving weird ” (Quotation marks) all over the page.

    Whats wrong? I dont understand, please help

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author webcraftic

    (@webcraftic)

    Hi,

    This strange code, just spaces. Your code still works, there’s nothing wrong with that.

    SnTRDP - 10GB - NORMAL - BROWSER ANONYMITY

    Please show the screenshot, I do not quite understand how it coded the page?

    Best regards, Alex

    Thread Starter sonuyos

    (@sonuyos)

    Hello Alex

    Thanks for reply.

    I was getting this weird error (?).
    https://prnt.sc/jz3ruy

    I had to restore my old backup to fix my website.

    Plugin Author webcraftic

    (@webcraftic)

    Why you do not want to use snippets, the WordPress editor is not suitable for inserting code, because it can convert and encode characters. Also this code is difficult to edit.

    I can show an example that the snippet editor does not code the spaces and there should not be a similar problem with it.

    If you have difficulties with placing snippets, I can help you figure out how to implement the work for your case.

    Best regards, Alex

    Thread Starter sonuyos

    (@sonuyos)

    It’s more complex than that.

    There are 4 order links. 4 diff curl to fetch the available order form.

    I am honestly not sure how it would work.

    And I am too scared to upgrade to 2.0.6.

    What if it starts giving me that error again?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Code giving weird error’ is closed to new replies.