General Community > Chit Chat

Package Parser

<< < (4/8) > >>

lorth:
i see, thanks.


...i tried (your install) of the parser with a mod for 1.1.11 i have trouble with on my 1.1.14 forum, and got a bunch of php warnings and errors.
(the mod is "hide post authors")


Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 155: parser error : Opening and ending tag mismatch: operation line 149 and file in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </file> in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 156: parser error : Opening and ending tag mismatch: file line 148 and modification in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </modification> in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 156: parser error : Premature end of data in tag modification line 12 in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: </modification> in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php:1182 Stack trace: #0 /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php(1182): SimpleXMLElement->__construct('<?xml version="...') #1 /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php(1043): xml_mod_instructions(Object(SimpleXMLElement), '/hermes/web12a/...') #2 /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php(1438): template_instructions() #3 /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php(203): show_template('instructions') #4 /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php(157): PackageInstructions() #5 /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/ in /hermes/web12a/b1157/moo.leclipseujano/tytyweb/main/wp-content/themes/tytyweb/page-package-parser.php on line 1182



...meh, no spoiler tag in this forum :s

tyty1234:
Hmm, Daniel15's package parser also had this same problem...I'm currently looking into this.
Also just additional notes that I forgot to mention.

The first argument of the str_replace() function in $context['self'] should match the directory name of your forum. For example, if your forum lies in the folder called "forum" that is located in the root, the argument would be "/forum/index.php". Otherwise if your forum is in the root directory of your site, all you need is is "/index.php".

I also updated the source, but I'm still looking into those SimpleXMLErrors.

Actually I found the error, and I knew it couldn't have been the parser. It's an error with the mod. There's no closing <operation> tag for the modification to the file "Modifications.english.php". What I just realized is that the parser doesn't have a validation function, meaning there's no way to validate that the mod is properly constructed, and all the tags close. Hmm, this is something for me to think about.

Nibogo:
Fantastic job! Really thanks for not make me create this :)

tyty1234:
Oh you're welcome :)
Thank you for your nice comment :D

phantomm:
Great, i was looking for something like this :)

But i have one little problem. How to fix:

--- Code: ---Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/phantomm/domains/phantom.jupe.pl/public_html/smf/parser.php on line 110
Could not chdir to /temp!
--- End code ---
?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version