You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm very glad I found your library as I've been looking for exactly something like that to build an Amazon-based application for my website. Now, I'm trying to deploy your library on my server, but everything I get is a PHP warning which afaik is usually caused by calling a non-static method statically:
Fatal error: Using $this when not in object context in /home/some_dir/Amazon-master/index.php on line 28
Could you please push an working version of this library as I see it works just fine on your site.
Thanks in advance,
Alex
The text was updated successfully, but these errors were encountered:
$result .= amazonLayout($i, $amazon);
Basically, I put a function called amazonLayout (its just a suggestion), and I called it incorrectly with the $this variable. The reason this is incorrect, is because $this only works on objects, and amazonLayout is simply a function, not within a class.
Date: Mon, 3 Feb 2014 12:42:15 -0800
From: notifications@github.com
To: Amazon@noreply.github.com
Subject: [Amazon] Fatal error: Using $this when not in object context (#1)
Hello,
I'm very glad I found your library as I've been looking for exactly something like that to build an Amazon-based application for my website. Now, I'm trying to deploy your library on my server, but everything I get is a PHP warning which afaik is usually caused by calling a non-static method statically:
Fatal error: Using $this when not in object context in /home/some_dir/Amazon-master/index.php on line 28
Could you please push an working version of this library as I see it works just fine on your site.
Thanks in advance,
Alex
—
Reply to this email directly or view it on GitHub.
Hello,
I'm very glad I found your library as I've been looking for exactly something like that to build an Amazon-based application for my website. Now, I'm trying to deploy your library on my server, but everything I get is a PHP warning which afaik is usually caused by calling a non-static method statically:
Fatal error: Using $this when not in object context in /home/some_dir/Amazon-master/index.php on line 28
Could you please push an working version of this library as I see it works just fine on your site.
Thanks in advance,
Alex
The text was updated successfully, but these errors were encountered: