Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7596965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:03:08+00:00 2026-05-30T22:03:08+00:00

I have so far tried Editing php.ini to allow_url_open = on; I have tried

  • 0

I have so far tried

Editing php.ini to allow_url_open = on;

I have tried placing error_reporting(0) at 0. I have tried ini_set('display_errors', 0) too. I still get a warning in my page. I also tried @fopen and file_get_contents… This is the code:

<?php 
/**
*   Image Detect - Do we have images on the CDN v2
**/
    $cdnurl="http://www.****-cdn.com/";
    $pid=$product_info['sku']; // database variable decalred earlier in page
    $oldfile="".$cdnurl."catwalk/movies/".$pid.".flv";
    $newfile="".$cdnurl."assets/".$pid."/v/".$pid.".swf";
    $combi=0; // out variable
    if(@fopen($oldfile,"r")===TRUE){
        $combi=1;
    } else {
        if(@fopen($newfile,"r")===TRUE){
            $combi=2;
        } else {
            $combi=3;
        }
    }

?>

Warning : fopen(http://www.*-cdn.com/catwalk/movies/564_white.flv):
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in
/var/www/www.sitedev.com/web/template.inc.php

Warning :
file_get_contents(http://www.*-cdn.com/catwalk/movies/564_white.flv):
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in
/var/www/www.sitedev.com/web/template.inc.php

These are the warnings… I have searched extensively and tried using ===FALSE and ==FALSE but I cannot hide the warning. I am aware the file does not exist but I just want it to skip, this code works on other servers and other cloud nginx servers that are the same setup.

phpinfo(); shows

allow_url_fopen     On      On
allow_url_include   Off     Off
error_reporting     no value    no value

Appreciate any help, my first question so go easy!

** UPDATED ****

I hope this is OK. The site says I can answer my own question.

The problem was script related. I use OpenCart Ecommerce platform and in that software there is something called – set_error_handler – this completely overrides everything else.

So in future since Opencart is bloated with these queries, visit /opencart root/index.php and find “set_error_handler(‘error_handler’);” and replace and comment it out.

// Error Handler
//set_error_handler(‘error_handler’);

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:03:10+00:00Added an answer on May 30, 2026 at 10:03 pm

    “So in future since Opencart is bloated with these queries, visit /opencart root/index.php and find “set_error_handler(‘error_handler’);” and replace and comment it out.”

    It would be wiser to find the function error_handler which has been set as the error handler and alter the behaviour for the error type being hit in this case. Commenting out the line mentioned will cause your application to revert to PHP’s standard error handling which may not be desired.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So far I have tried using 'setParseAction' to get the location of matched tokens,
I have a problem I tried solving on my own, but didn't get far
Here's what I have tried so far. I'm just not too sure as to
Here is what I have tried thus far: > cd /Applications/MAMP/bin/php5/bin/ > ./pear channel-discover
I have tried several things so far, but I haven't had much luck yet.
So far, no Delphi version supports SOAP 1.2 clients or server. I have tried
What I have so far: I have a form in PHP that contain the
I want to compare varbinary type with byte array. I have tried so far:
This is what I have tried so far but with no success: std::string ReadPartial(
I have thus far built an Editor and a Viewer that both work on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.