Originally Posted by
yellow1912
Weird, since I do use that in my script. But why not just declare it as global instead?
global $hsbc;
--> this way it will work exactly the way it should.
That wouldn't help. The hsbc_return.php expects to have $GLOBALS['hsbc'] set.
$GLOBALS is set in a major way, for example:
Code:
[GLOBALS] => Array
*RECURSION*
[za_dir] => Directory Object
(
[path] => includes/extra_configures
[handle] => Resource id #3
)
[zv_file] =>
[autoLoadConfig] => Array
(
[0] => Array
.....
but it does not have an associative key 'hsbc' and therefore the object $hash cannont be instantiated.
The critical next line:
Code:
$hash=$hsbc->getHash($post_2);
results in:
Code:
Fatal error: Call to a member function on a non-object in /full/path/to/domain/cartdir/hsbc_return.php on line 54 (line number may differ for others as I have debug code in there too).
Anyone who has (or had) the foamcow module working must have surmounted this issue.
As for the reward, it is a genuine offer for a working solution. If it had turned out to be an errant semicolon, underscore or anything equally prosaic I would still get my wallet out :)
Bookmarks