PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in .../inc/global.inc.php on line 3xx

40Dialogues's Avatar

40Dialogues

16 Nov, 2014 03:50 PM

Hi.
Getting these warnings.

PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in .../inc/global.inc.php on line 348  
PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in .../inc/global.inc.php on line 349  
PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in .../inc/global.inc.php on line 350  
PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in .../inc/global.inc.php on line 350  
PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in .../inc/global.inc.php on line 351  
PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in .../inc/global.inc.php on line 352  
PHP Warning:  Unexpected character in input:  '\' (ASCII=92) state=1 in .../inc/global.inc.php on line 355

Pimp my Log 1.5.1
PHP 5.2

  1. Support Staff 1 Posted by potsky on 16 Nov, 2014 05:42 PM

    potsky's Avatar

    Ok found too and fixed. Can you test the attached zip file please (sorry, you need to reconfigure Pimp My Log) ?

    I have fixed bugs from the other ticket too.

  2. 2 Posted by 40Dialogues on 16 Nov, 2014 06:16 PM

    40Dialogues's Avatar

    Thank you for the fix. Still got these two.

    PHP Fatal error:  Undefined class constant 'ALL' in .../inc/global.inc.php on line 106  
    PHP Fatal error:  Call to undefined method DateTime::setTimestamp() in .../inc/classes/LogParser.php on line 394
    

    Removed DateTimeZone::ALL. Copied the same fix to line 394. And I was able to see my logs in Pimp my Log for the first time!

  3. Support Staff 3 Posted by potsky on 16 Nov, 2014 06:39 PM

    potsky's Avatar

    Ok, here is the final version with these both fixes, is it ok on PHP 5.2 ?

    Have you tried features in page inc/test.php and authentication ?

    Sorry to ask you this but I cannot test PHP 5.2 anymore and composer does not work on travis CI...

  4. potsky closed this discussion on 16 Nov, 2014 07:12 PM.

  5. 40Dialogues re-opened this discussion on 16 Nov, 2014 07:21 PM

  6. 4 Posted by 40Dialogues on 16 Nov, 2014 07:21 PM

    40Dialogues's Avatar

    LogParser.php:398

                            $date = new DateTime( "@" . filemtime( $timestamp ) );
    

    Maybe you meant to have it as follows?

                            $date = new DateTime( "@" . $timestamp );
    
  7. Support Staff 5 Posted by potsky on 16 Nov, 2014 07:31 PM

    potsky's Avatar

    Rrrrrh ! Thanx ! You're right !

  8. potsky closed this discussion on 16 Nov, 2014 07:31 PM.

  9. 40Dialogues re-opened this discussion on 16 Nov, 2014 07:38 PM

  10. 6 Posted by 40Dialogues on 16 Nov, 2014 07:38 PM

    40Dialogues's Avatar

    Have you tried features in page inc/test.php and authentication ?

    Just wanted to let you know that the user authentication worked.

    Many thanks...

  11. 40Dialogues closed this discussion on 16 Nov, 2014 07:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac