View previous topic :: View next topic |
Author |
Message |
jmpetosky Lurker

Joined: 09 Jan 2005 Posts: 8
|
Posted: Sun Jan 09, 2005 7:58 pm Post subject: admin problems (PHP5 issues) |
|
|
I'm sorry to be a pain in the patootie. Now that I've gotten my other issue to work, I'm having admin problems. When I click on any link to do any admin function, I get an error:
PHP Fatal error: Cannot re-assign $this in d:\home\hnt18b104\calendar2\admin.php on line 428
I think I understand what's happening but am not sure how to fix it.
Oh, a bit of background. When I first set everything up, I got an error:
PHP Fatal error: Cannot re-assign $this in d:\home\hnt18b104\calendar2\lib.php on line 654
So, I commented out lines 652 through 661 in the lib.php file. I stopped getting that error but started getting the new one about the admin.php file.
Any suggestions?
Thanks again,
Janice
[edited by Dan to stay at top of forum and subject to reflect the determined problem]
________
Mercury Montego specifications
Last edited by jmpetosky on Wed Feb 02, 2011 2:38 am; edited 1 time in total |
|
Back to top |
|
 |
jmpetosky Lurker

Joined: 09 Jan 2005 Posts: 8
|
Posted: Sun Jan 09, 2005 8:45 pm Post subject: bigger problem |
|
|
Actually, it seems this is a much bigger problem than with just admin stuff. I get the same kind of error when trying to do anything like adding entries: PHP Fatal error: Cannot re-assign $this in d:\home\hnt18b104\calendar2\perform_update.php on line 200
Trying to set the admin password: PHP Fatal error: Cannot re-assign $this in d:\home\hnt18b104\calendar2\admin.php on line 428
etc.
Sorrry I'm such a goof at this. But, I figure you have to start somewhere.
________
Lincoln Versailles specifications
Last edited by jmpetosky on Wed Feb 02, 2011 2:38 am; edited 1 time in total |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Sun Jan 09, 2005 10:10 pm Post subject: |
|
|
You definitely don't want to go commenting out lines without a good understanding what they do. You're virtually guaranteed of causing additional problems, otherwise.
You're running v2.20.3, which means the line 428 in admin.php that caused the error is:
$this = "User";
The lib.php line 654 error is pretty much the same.
As you can see, there's nothing unusual about that line, so the first thing to inspect is your server setup. Do you have details handy as to what version of PHP is in use and what sort of server it is?
I'm not entirely sure what setting would be causing the problem or what the intended purpose is, but I'm guessing it's in the server's php.ini configuration file, and it is probably some goofy attempt at limiting hack attempts. There's nothing wrong with assigning and reassigning a variable internally, but accepting unchecked input would be a different matter.
Cheers,
Dan |
|
Back to top |
|
 |
jmpetosky Lurker

Joined: 09 Jan 2005 Posts: 8
|
Posted: Sun Jan 09, 2005 10:19 pm Post subject: |
|
|
It's php v 5.0.2 and the server is a windows 2003 server.
Thanks,
Janice
________
Suzuki GSR600 specifications
Last edited by jmpetosky on Wed Feb 02, 2011 2:38 am; edited 1 time in total |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Sun Jan 09, 2005 10:24 pm Post subject: |
|
|
Ouch, that's a painful combination. Windows is always more troublesome, although that alone shouldn't cause things to not work. PHP5 is a concern, however, as I haven't yet done any development work on it and am awaiting it to achieve stable status before doing so. I'm actually surprised any hosts would be running it on production servers at this point, given all the bugs yet to be worked out.
Does your host give you any choice as to which PHP version to use? Do they still have PHP4 loaded on the server and accessible via a *.php4 file extension or something?
Cheers,
Dan |
|
Back to top |
|
 |
jmpetosky Lurker

Joined: 09 Jan 2005 Posts: 8
|
Posted: Sun Jan 09, 2005 10:26 pm Post subject: |
|
|
Yikes. Good question. I'll have to call them and see.
Thanks!
Janice
________
Ferrari 312B history
Last edited by jmpetosky on Wed Feb 02, 2011 2:38 am; edited 1 time in total |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
|
Back to top |
|
 |
jmpetosky Lurker

Joined: 09 Jan 2005 Posts: 8
|
Posted: Wed Jan 12, 2005 11:15 pm Post subject: Update! |
|
|
YAY!! update....I got my hosting provider to put me back on PHP 4 and everything is working as expected. What a relief!!
Thanks a million for your help!
Janice
________
Honda CM125 history
Last edited by jmpetosky on Wed Feb 02, 2011 2:38 am; edited 1 time in total |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Thu Jan 13, 2005 11:15 am Post subject: |
|
|
Hey Janice,
Glad to hear your host was receptive to the request and that everything turned out well. Good to know also that PHP5 is definitely the culprit, as suspected.
I'll obviously have to start testing PHP5 before long so as to get the code base(s) up to speed once it becomes widely deployed, but problems like these don't exactly make me want to jump in.
I made this thread a sticky and edited the subject so as to be easy to find by any others having the same problem.
Cheers,
Dan |
|
Back to top |
|
 |
|