This topic was marked solved by Nao, on February 24th, 2014, 12:50 AM
PHP Fatal error

madfitz

  • Elite Class Non Coder
  • Posts: 97
PHP Fatal error
« on February 23rd, 2014, 11:21 PM »
I've been seeing a few of these in my error log today:

PHP Fatal error:  Call to protected method wess::string2color() from context '' in /home/.../gz/app/Class-CSS.php on line 1367

Ideas on cause/cure?

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: PHP Fatal error
« Reply #1, on February 24th, 2014, 12:50 AM »
Are you sure you're using the latest revision..?
This was fixed a few days ago.

madfitz

  • Elite Class Non Coder
  • Posts: 97
Re: PHP Fatal error
« Reply #2, on February 24th, 2014, 07:49 AM »
I am absolutely 100% certain I am using the latest revision as I check in several times a day and always grab the latest. However...

if you post new revs which say (for example) "6 files changed" I only overwrite those 6 files (plus index.php in the root folder). Is this right or wrong? Should I overwrite *every* wedge file?

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: PHP Fatal error
« Reply #3, on February 24th, 2014, 07:59 AM »
Then what's the date of your core/app/Class-CSS.php file?

madfitz

  • Elite Class Non Coder
  • Posts: 97
Re: PHP Fatal error
« Reply #4, on February 24th, 2014, 01:55 PM »
The last (installed) file is dated 19 Feb.

Edit: Sorry for the delays when answering, I check in before work, during work breaks and after work.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: PHP Fatal error
« Reply #5, on February 24th, 2014, 03:04 PM »
Then it's not up to date...

madfitz

  • Elite Class Non Coder
  • Posts: 97
Re: PHP Fatal error
« Reply #6, on February 24th, 2014, 08:07 PM »Last edited on February 24th, 2014, 08:39 PM
Then I ask again... if you post new revs which say (for example) "6 files changed" I only overwrite those 6 files (plus index.php in the root folder). Is this right or wrong? Should I overwrite *every* wedge file?

That was the latest "reported" update to that file. Should I replace every file with every new rev - or just the revised files?

Edit: This was the last "reported" revision that I can see you posted - dated 19/2/14: http://wedge.org/pub/feats/6108/new-revs/msg294224/#msg294224

Farjo

  • "a valuable asset to the community"
  • Posts: 492
Re: PHP Fatal error
« Reply #7, on February 24th, 2014, 10:16 PM »
I just update the revised files by looking at the commit section of here: https://github.com/Wedge/wedge and don't bother with index.php (unless updated). Of course I download a new zip each time to get the latest files.

If you had been doing this then the file in question would have been updated because (as your link shows) it is listed as being updated.

madfitz

  • Elite Class Non Coder
  • Posts: 97
Re: PHP Fatal error
« Reply #8, on February 24th, 2014, 11:28 PM »
I do the same Farjo, and did this on 19 Feb, but just days later Nao says my file is out of date - though I haven't seen a later revision of the same file :-/

Farjo

  • "a valuable asset to the community"
  • Posts: 492
Re: PHP Fatal error
« Reply #9, on February 24th, 2014, 11:40 PM »
Ohhhh I see. Sorry mate I'm being daft ::)

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: PHP Fatal error
« Reply #11, on February 25th, 2014, 12:30 AM »
Quote from madfitz on February 24th, 2014, 08:07 PM
Edit: This was the last "reported" revision that I can see you posted - dated 19/2/14: http://wedge.org/pub/feats/6108/new-revs/msg294224/#msg294224
No, it isn't...
I'm assuming that testers don't want to bother with file versions and just overwrite everything every time they update.
If you want to update files one by one, you should rely on the commit list, rather than my manual changelogs, because I don't always list all files. I only list them for *my* own convenience when I want to find thematic groupings, but not as an exhaustive listing of all files you should update. For that, you can also just click the '6 files changed' link, and indeed see which files were modified.

As for the rest... See Farjo's last post!

madfitz

  • Elite Class Non Coder
  • Posts: 97
Re: PHP Fatal error
« Reply #12, on February 25th, 2014, 08:57 AM »
I don't want to overwrite every file with every commit because my forum is on hosted web space (not my local machine) and I'm thinking about bandwidth here. I'd prefer to only update the absolute minimum required files...
Quote from Nao on February 25th, 2014, 12:30 AM
For that, you can also just click the '6 files changed' link, and indeed see which files were modified.
Which is what I do (or at least what I try to do (I clearly missed that one) :huh:

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: PHP Fatal error
« Reply #13, on February 26th, 2014, 06:01 PM »
Safest way to do that:
Install git on your machine... (Or even GitHub for Windows, if you're not planning to do a lot of heavy modifications).
Clone/fork the Wedge repo(s) onto your hard drive.
When you see changes were made, just pull again from the remote repo.
Only the changed files will get their last modified date, err... Modified. I know, I'm repeating myself.

This is how I'm (manually) updating wedge.org, by the way. :P My FTP client has a shortcut to look for modified files, and only upload those.

Farjo

  • "a valuable asset to the community"
  • Posts: 492