Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

photo.php error

Asked Modified Viewed 2,192 times
J
Joe Kriz
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
  • Started this discussions
asked
Senior Member

I am getting this error for the photo.php file.

PHP Notice: Undefined variable: copyright2 in /home/xxxxxx/public_html/photo.php on line 193

Is anyone else getting this error in their error_logs ?

I looked at the code in photo.php but am not sure what needs to be added or changed to get rid of this error.

if ($copyright2) { ImageDestroy($copyright2); }
0 replies

7 posts

G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Please post line 193.
0 replies
S
SiteMaster
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums
answered
Senior Member

Quote

googlebot wrote:
Please post line 193.


Quote

Joe Kriz wrote:
I am getting this error for the photo.php file.

PHP Notice: Undefined variable: copyright2 in /home/xxxxxx/public_html/photo.php on line 193

Is anyone else getting this error in their error_logs ?

I looked at the code in photo.php but am not sure what needs to be added or changed to get rid of this error.

line 193 in photo.php
if ($copyright2) { ImageDestroy($copyright2); }
0 replies
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Quote

SiteMaster wrote:

Quote

googlebot wrote:
Please post line 193.


Quote

Joe Kriz wrote:
I am getting this error for the photo.php file.

PHP Notice: Undefined variable: copyright2 in /home/xxxxxx/public_html/photo.php on line 193

Is anyone else getting this error in their error_logs ?

I looked at the code in photo.php but am not sure what needs to be added or changed to get rid of this error.

line 193 in photo.php
if ($copyright2) { ImageDestroy($copyright2); }

I'm a little out of it today (loooong day today). (and I just skimmed it..)

(Even though he didn't put the "line 193 in photo.php", and you added it...)

Anyway, OP, try commeting out that line. ( // )
Edited by googlebot on 10-09-2008 22:35,
0 replies
J
Joe Kriz
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
  • Started this discussions
answered
Senior Member

googlebot,

Yes, the code I listed in my first post is from the photo.php on line 193....

Don't know why it is needed if it is an undefined variable....
I certainly can comment it out using the // and I can also delete that line...
Still, would like to know why it is there and why it remains undefined.
Maybe a fix or delete is in order on the updated version of PHP Fusion 7.....??
0 replies
G
googlebot
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
answered
Senior Member

Quote

Joe Kriz wrote:
googlebot,

Yes, the code I listed in my first post is from the photo.php on line 193....

Don't know why it is needed if it is an undefined variable....
I certainly can comment it out using the // and I can also delete that line...
Still, would like to know why it is there and why it remains undefined.
Maybe a fix or delete is in order on the updated version of PHP Fusion 7.....??

Search the file for other appearances of

$copyright2

If that is the ONLY time it is used, the error is generated because it is undefined (it isn't a variable at all, just called to randomly). By the PHP notice and the code for that line I know that there is not a defined $copyright2 (such as $copyright2 = blahblahblah; ), because if there was, it would then exist, and that would not make that notice appear.

Hope that explains it! :P
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

The file photo.php is written by Wooya.
Maybe we should contact him ;)

Until he has fixed this problem, you can use this method:

if (isset($copyright2)) { ImageDestroy($copyright2); }
0 replies
W
Wooya
W
Wooya 10
PHP-Fusion DEV Team
It's not a bug, it's undocumented feature...
  • Senior Member, joined since
  • Contributed 205 posts on the community forums.
  • Started 11 threads in the forums
answered
Senior Member

To fix this problem just delete this line from photo.php. SVN updated.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

W
W
Wooya 10
PHP-Fusion DEV Team
It's not a bug, it's undocumented feature...
  • Senior Member, joined since
  • Contributed 205 posts on the community forums.
  • Started 11 threads in the forums
J
J
  • Senior Member, joined since
  • Contributed 281 posts on the community forums.
  • Started 39 threads in the forums
  • Started this discussions
B
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
G
G
Visit the new home of the merge between Hacking Vs. Security and Security Override!
My copyright removal has been switched over from HvS to SecurityOverride.
  • Senior Member, joined since
  • Contributed 638 posts on the community forums.
  • Started 28 threads in the forums
S
S
If i have touched it, it's W3C Valid
  • Senior Member, joined since
  • Contributed 305 posts on the community forums.
  • Started 15 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet