Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Large Debug Cache files - problems in tpl_spots_sidebox.php

    Code:
    $file = fopen("http://a.coinnet.com/cgi-bin/freebie" , "r");
    That line is trying to use a PHP function named "fopen" to access an external website (a.coinnet.com) to "read" (the "r") the data on that page.

    Many hosting companies nowadays specifically prohibit "fopen" from accessing external websites (allow_url_fopen = off) for security reasons, since hackers/phishers will often use that very approach for nefarious reasons.
    So, it could be that your hosting company (or your server administrator, whoever controls the master PHP configuration on that server) has specifically changed things to be more secure, and the side-effect is that the errors you reported are now being triggered.

    If your hosting company won't re-allow access to that URL, then you might need to rewrite the PHP to use something like CURL to read the data, and then also rewrite the code that parses it (all the fgets and feof etc function calls) to loop thru the data a little differently in order to get the desired end result.

    Or, if the sidebox is no longer really needed, you could just turn it off and that particular problem goes away.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Large Debug Cache files - problems in tpl_spots_sidebox.php

    Hmmm ... actually ... the problem may be even worse than that ...

    If you try visiting that URL with your browser, you'll see that the page is blank and a "not found" error is returned.

    So, whether that allow_url_fopen is set or not, you're still gonna get no useful data back.

    If you want the functionality that that sidebox was giving at one time, you'll need to find another source for the data before you even bother considering the best method of reading and parsing the data for use.

    For now I suggest turning off the sidebox: Admin->Tools->Layout Boxes Controller.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: Large Debug Cache files - problems in tpl_spots_sidebox.php

    I already turned it off.

    Thanks for the help.

 

 

Similar Threads

  1. v151 "500" on Cleanup Debug Log Files, PHP 5.4
    By rayw1679 in forum General Questions
    Replies: 5
    Last Post: 5 Mar 2013, 07:06 AM
  2. Debug files filling up my Cache on Zen 139H
    By tbokich in forum General Questions
    Replies: 2
    Last Post: 28 Apr 2011, 07:09 AM
  3. PHP Error - Blank Page w/ log files from debug utility.
    By jester8131 in forum General Questions
    Replies: 2
    Last Post: 5 Feb 2010, 05:35 AM
  4. AIM debug files in cache folder
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 31 Dec 2007, 07:43 PM
  5. Replies: 1
    Last Post: 26 Jun 2007, 05:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg