You are here:  » Warning: message!

Support Forum



Warning: message!

Submitted by Paul1107 on Mon, 2009-08-03 18:44 in

Hi David

Just trying to get up and running using a different host and a new installation of PT

I've tried as far as I can remember to set up as previous installations.

But now that I'm trying to include the price comparison calling code, I'm getting the following warning

Warning: main(/home/sites/********/public_html/external.php) [function.main]: failed to open stream: No such file or directory in /home/sites/********/public_html/filename.php on line 66

I have used the external.php from an existing installation which I'm not sure has any bearing? and have used the whereami.php to get the path.

Can you please give me an idea of where I'm going wrong?

Regards

Paul

Submitted by support on Tue, 2009-08-04 09:02

Hi Paul,

Can you double check that it is not the same issue as before in that external.php has somehow not been uploaded (missed out of FTP just like search.php was) - that's the most likely situation assuming that the path you see in /home/sites/.... is correct...

Cheers,
David.

Submitted by Paul1107 on Tue, 2009-08-04 13:24

Hi David,

Checked and is definitely there, though I took the file from one of the other PT installations I have, which to be fair has been amended on several occasions, but I would have thought that would not have had an impact, just in case I then uploaded my original external.php, and got the same warning message.

The calling code I'm using is

<?php
 $external_baseHREF 
"{saved}";
 
$external_path "{saved}";
$_GET["product"] = "Nintendo DS Console";
 require(
$external_path."external.php");
?>

As we determined yesterday , the installation is in the root of this domain...

Don't know whether that gives any pointers at all?

Cheers

Paul

Submitted by support on Tue, 2009-08-04 13:44

Hi Paul,

I wonder if it's something to do with open file restrictions on this server. Instead of:

require($external_path."external.php");

...try just:

require("external.php");

Cheers,
David.

Submitted by Paul1107 on Tue, 2009-08-04 14:04

Hi David,

I'm afraid that doesn't seem to work...

Regards

Paul

Submitted by support on Tue, 2009-08-04 14:19

Hi Paul,

Could you email me the file containing the calling code (filename.php as per the warning message) and I'll take a look!

Cheers,
David.