This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-03-06 21:31:17

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Wiki showing PHP errors (as well as major ineficient code)

I was on the Wiki today and saw this:
http://i.imgur.com/jLhkTcT.png

I have 2 things to say about this:
1. It shouldn't show PHP errors, instead just show a generic 500 page or just attempt to continue executing.
2. The way that it gets user icons is really pretty weak coding. For a good website design, the server-side code should not have to HTTP-reference any other pages, as it can really slow down the page loading and also can make a major impact on the speed of the server, as scripts will take much more CPU power and RAM. Instead of getting the user ID on the fly with a HTTP request, instead it should just cache the user ID directly in the database (I read on the 2.0 bugtracker it verifies registrations using the API, which does provide user ID). If that idea is used instead, then pages (at least talk pages) will load much quicker and other pages will too because there is less CPU being used by other processes.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#2 2013-03-06 22:13:53

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Wiki showing PHP errors (as well as major ineficient code)

Quoth the top of every page on the wiki:
"Hey everyone! The wiki's current lack of Scratch-styling is temporary, so don't worry. We're migrating the wiki and things still have to be worked out. Thanks!"
Because it's being/has been migrated, some things are broken and some things just aren't working. I assume the error is showing because some debug setting in MW or PHP is on, likely because of debugging the move. It is good feedback though, because it tells us what need to be fixed.

However:
We admins of the wiki prefer this all to be in one place, on the wiki. To ensure you get the attention of all the right people, it's probably best to post this on the wiki in the community portal or on the new wiki bugs page.


Posts: 20000 - Show all posts

Offline

 

Board footer