Simple Invoices logo
    • CommentAuthoralja
    • CommentTimeOct 2nd 2007 edited
     permalink
    Hi, I was trying to upgrade to the last stable but everything is a mess now. I've tried to do a fresh installation but get an error Parse error: syntax error, unexpected T_CLASS in /home/alja/public_html/simpleinvoices/include/CustomField.php on line 23 also I didn't find the pdf folder in the zip file hence I couldn't change the permissions on fpdf.

    Thanks.
    • CommentAuthorasterisco
    • CommentTimeOct 2nd 2007 edited
     permalink
    I have the same problem while trying to access for the first time to the simple invoices url.

    Any help?
    • CommentAuthoraplysia
    • CommentTimeOct 2nd 2007 edited
     permalink
    What's your PHP-Version?
    • CommentAuthorjustin
    • CommentTimeOct 2nd 2007 edited
     permalink
    Hi Guys

    @alja
    - re pdf folder
    -- its now in ./include/pdf

    i better update the documentation :)

    Cheers

    JustinSmarterInvoices.com Simple Invoices hosting | SixHQ.com Simple Invoices custom development | Me
    • CommentAuthorasterisco
    • CommentTimeOct 3rd 2007 edited
     permalink
    I was not going to use the PDF for now, so... I dont know what to do... because i didnt set it up, so the issue must be somewhere else.
    aplysia, i have PHP 5 on this server.
    • CommentAuthorjustin
    • CommentTimeOct 3rd 2007 edited
     permalink
    Hey Guys,
    just a quick google returns:
    http://bugs.php.net/bug.php?id=29361
    http://bugs.php.net/bug.php?id=38303

    claims to be fixed in php 5.1 and above

    Cheers

    JustinSmarterInvoices.com Simple Invoices hosting | SixHQ.com Simple Invoices custom development | Me
    • CommentAuthoraplysia
    • CommentTimeOct 3rd 2007 edited
     permalink
    Your right, it seems to be the first bug. Because for the new CustomField System it creates an array with classes.
    So we got two solutions. Number one is to update to at leaste php 5.1,

    Number 2: @justin: Do you already plan to enable the new custom field system in the next release? If not, perhaps we could remove the code to solve the problem.
    • CommentAuthorjustin
    • CommentTimeOct 3rd 2007 edited
     permalink
    re new custom fields
    - yep - should be in the next release - once conversion script and testing is done - maybe in a month

    re removing the code
    - nah - dont worry about that - we'll just have to say the minimum php version to run Simple Invoices is 5.2

    re 5.2 over 5.1
    - 5.2 got alot of good stuff in it that we can start to use - so we'll just say this is the new minimum

    cheers

    justinSmarterInvoices.com Simple Invoices hosting | SixHQ.com Simple Invoices custom development | Me
    • CommentAuthoralja
    • CommentTimeOct 3rd 2007 edited
     permalink
    please excuse my ignorance but I haven't understood, is there a way to solve this so I can have simpleinvoices working again.

    thanks.
    • CommentAuthoraplysia
    • CommentTimeOct 3rd 2007 edited
     permalink
    Yes, you should update your php version to at least php 5.1. to delete all the custom field code is a bit harder.
    • CommentAuthoralja
    • CommentTimeOct 3rd 2007 edited
     permalink
    :( :( Well seems I won't be able to enjoy the goodies of the new releases, My hosting company won't update by now and I'm still in php 4.4.7 :( :(

    Thanks.
    • CommentAuthorjustin
    • CommentTimeOct 3rd 2007 edited
     permalink
    @alja
    - thats correct unfortunately

    we've decided to drop support for php4 so we can start writing some kick ass OO code

    what you can do to get php5
    1 - get a new webhost
    2 - or install php5 on your local pc and run Simple Invoices locally
    3 - or im looking to set up free and paid for Simple Invoices hosting on one of my servers - shoot me an email if your interested

    Cheers

    JustinSmarterInvoices.com Simple Invoices hosting | SixHQ.com Simple Invoices custom development | Me
    • CommentAuthoraplysia
    • CommentTimeOct 3rd 2007 edited
     permalink
    Hi alja

    Perhaps that's a point to change the hosting company. In my opinion every hosting company should support php5.
    PHP5 offers us a lot of new possiblities because we can write clean OO code. That makes the code shorter and more readable.

    Here the forum post to this topic:
    http://simpleinvoices.org/forum/topic.php?id=341
    • CommentAuthorxsecrets
    • CommentTimeOct 5th 2007 edited
     permalink
    I must say this is just asinine or should I say just being an ass. Your software looks useful and I was going to use it, however I too do not have php 5.2. It's too bad you don't want a decent audience for your software.

    And as far as every hosting company supporting php5 there are still too many applications out there much more popular than yours that do not support php5 yet for all hosting companies to move to the absolute latest php5.
    • CommentAuthorjustin
    • CommentTimeOct 7th 2007 edited
     permalink
    Thanks Xsecrets for your thoughts

    re php 4
    - you can use Simple Invoices pre the last release with php 4 no worries

    - also we held off on making it php5 only until we actually starting writing php 5 code - which was in the last release

    unfortunately we can't make everyone happy, but for the long term future of Simple Invoices php 5 is our best option

    Cheers

    JustinSmarterInvoices.com Simple Invoices hosting | SixHQ.com Simple Invoices custom development | Me