Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/abledesi/domains/abledesign.com/public_html/navfiles/log.php on line 126

AbleDesign - Support Forum

AbleDesign Forum Index AbleDesign

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
AbleDesign Forum Index
MyCalendar Discussion
admin problems (PHP5 issues)
Post new topic   Reply to topic

Post new topic   Reply to topic    AbleDesign Forum Index -> MyCalendar Discussion
View previous topic :: View next topic  
Author Message
jmpetosky
Lurker
Lurker


Joined: 09 Jan 2005
Posts: 8

PostPosted: Sun Jan 09, 2005 7:58 pm    Post subject: admin problems (PHP5 issues) Reply with quote

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
View user's profile Send private message
jmpetosky
Lurker
Lurker


Joined: 09 Jan 2005
Posts: 8

PostPosted: Sun Jan 09, 2005 8:45 pm    Post subject: bigger problem Reply with quote

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
View user's profile Send private message
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Sun Jan 09, 2005 10:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jmpetosky
Lurker
Lurker


Joined: 09 Jan 2005
Posts: 8

PostPosted: Sun Jan 09, 2005 10:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Sun Jan 09, 2005 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jmpetosky
Lurker
Lurker


Joined: 09 Jan 2005
Posts: 8

PostPosted: Sun Jan 09, 2005 10:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Sun Jan 09, 2005 10:29 pm    Post subject: Reply with quote

Here are two previous reports of similar variable re-assigning problems:

http://abledesign.com/forum/viewtopic.php?t=526&highlight=cannot+reassign
http://abledesign.com/forum/viewtopic.php?t=564&highlight=cannot+reassign

As you can see, I never received much in the way of followup to troubleshoot the problems any further. However, note that the first one experienced the problem after upgrading to PHP5. Perhaps just coincidence, but that was 5 months ago, which gives you an idea how far PHP5 is from being ready for prime time.

Cheers,
Dan
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jmpetosky
Lurker
Lurker


Joined: 09 Jan 2005
Posts: 8

PostPosted: Wed Jan 12, 2005 11:15 pm    Post subject: Update! Reply with quote

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
View user's profile Send private message
Dan
Admin / Developer
Admin / Developer


Joined: 19 Feb 2001
Posts: 2057

PostPosted: Thu Jan 13, 2005 11:15 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AbleDesign Forum Index -> MyCalendar Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group


Home | Services | Pricing | Portfolio | About Us | Contact
Support | Programs | Purchase | Tutorials | Site Map

© 1999-2025 AbleDesign.com - Web Design that Can!