Failed To Parse Unknown Error
Contents |
Hide topic Mfort123 (talkcontribs) I have pretty much given up on troubleshooting this issue. I simply cannot get math/Latex to failed to parse lexing error work. Here is the relevant information about my setup: Operating system: unknown error parsing query Fedora 20 Mediawiki version: 1.23.5 Database server: MySql 5.6.21 PHP: 5.5.17 (apache2handler) LocalSettings.php: $wgEnableUploads = true; $wgUseImageMagick unknown error parsing query in salesforce developer console = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; require_once("$IP/extensions/Math/Math.php"); $wgUseTeX =true; $wgUploadDirectory = "{$IP}/images"; $wgUploadPath ="{$wgScriptPath}/images"; $wgMathPath = "{$wgUploadPath/}math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp"; $wgTexvc ="{$IP}/extensions/Math/math"; $wgDebugLogFile="{$IP}/images/tmp/logfile.log"; Troubleshooting already done: unknown error parsing expression Did not forget to use php ./maintenance/update.php after changing my LocalSettings.php file. I have a tmp and math directory in /images. They have group owner "apache" with the appropriate permissions (775). I checked texvc by issuing this command in the terminal (with the appropriate directory names changed): texvc /home/wiki/tmp /home/wiki/math "y=x+2" iso-8859-1 "rgb 1.0 1.0 1.0" and
Error Failed To Parse Poms
everything is fine (the file is created in the math directory). I tried editing my page with SELinux turned off by using "setenforce 0" and I still get "unknown error" when using math. I've made every relevant .php and .php5 file executable with group owner set to "apache". I've check the Special:Version page and the math extension is correctly installed. Here is the log file that is generated after trying to access the wiki page: Start command line script ./maintenance/update.php [caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff [caches] LocalisationCache: using store LCStoreNull Fully initialised Connected to database 0 at localhost DatabaseBase::query: Writes done: UPDATE `page` SET page_random = RAND() WHERE page_random = 0 SQL ERROR (ignored): Table 'my_wiki.profiling' doesn't exist (localhost) I tried placing the latex.fmt file in the /images/tmp directory and that still doesn't work. Final comments: I've followed every troubleshooting method that I could find through web search and nothing has worked. At this point, I have given up and I'm asking for some help. Than
respective pages might be found at Meta. Remove this template once cleanup is complete. In case your users encounter problems with LaTeX equations on your wiki, the following troubleshooting steps might help. Contents 1 Preliminaries 2 Errors 2.1 Raw
Error Failed To Parse Poms Java.io.ioexception Cannot Run Program /bin/java
Tags 2.2 No error messages but source is displayed instead of rendered formula 2.3 error failed to parse poms jenkins "Failed to parse (Cannot store math image on filesystem)" 2.4 "Failed to parse (Can't write to or create math output directory)" 2.5 error failed to parse poms java.io.eofexception unexpected stream termination "Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert)" 2.5.1 Linux 2.5.2 Mac 2.5.3 Nginx: Execute texvc as root with sudo 2.5.4 Nginx: Use absolute path in texvc sources 2.5.5 Windows https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Failed_to_parse_(unknown_error)_when_using_the_math_extension/reply 2.6 SQL Errors 2.6.1 Wrong collation / charset (usually utf8 vs. latin1) 3 Identify the error 4 Localise the error 5 Debug the heck out of things 6 Hack texvc 6.1 Which latex, dvips, convert ... 7 Errors with convert 8 See Also Preliminaries[edit] Have you compiled texvc? see the math/ directory Do you have LaTeX, dvips, gs and convert (ImageMagick)? Is your LaTeX installation correct? Are the math formulas correct latex? Try a simple https://www.mediawiki.org/wiki/Manual:Troubleshooting_math_display_errors formula like Are the file permissions correct? Can your image directories, include images/math and images/tmp be written to by your webserver's user? If none of these help, you might have to start rolling up your sleeves. From here on, we assume that you have some access to the web server, specifically that you are at the directory where you installed MediaWiki, for example: cd /whatever/htdocs/w Errors[edit] Raw Tags[edit] Check LocalSettings.php for: $wgUseTeX = true; No error messages but source is displayed instead of rendered formula[edit] Check the math directories configuration (see next section). "Failed to parse (Cannot store math image on filesystem)"[edit] Make sure the access to the upload folder is correct (/wiki/images). chmod -R 766 images "Failed to parse (Can't write to or create math output directory)"[edit] Check your LocalSettings.php for the following global variables: $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp"; and make sure those directories are all writable by your webserver. You can run this command if you have shell access to the server and it runs on a Unix system. sudo chown -R www-data:www-data ''directory'' The tmp directory is located inside the image directory. chmod 777 tmp to make writeable. Make sure that there's no SELinux errors. If not, change the policies accordingly. By default $wgUploadPath and $wgUploadDirectory are set to false. You can specif
Task Maniphest T7625 Failed to parse (unknown error) with math due to SELinuxClosed, InvalidPublicActionsEdit TaskEdit Related Tasks...Create SubtaskEdit Parent TasksEdit SubtasksMerge Duplicates InClose As DuplicateEdit Related Objects...Edit CommitsEdit MocksEdit RevisionsProtect as security issueSubscribeAward TokenFlag For LaterTagsMediaWiki-Installer (Backlog)Subscriberswikibugs-l-listAssigned ToNoneAuthored Bybzimport, Apr 17 2006DescriptionAuthor: heys https://phabricator.wikimedia.org/T7625 Description: I am unable to get the math package to work, even after extensive efforts. Here's what I've tried: (1) compiled and tested texvc system -- it works fine from http://wikimedia.7.x6.nabble.com/math-Failed-to-parse-unknown-error-td626607.html the command line (2) ensured that dvips, convert, and latex were in the default path -- I even added the path to those commands in render.ml as a test to see failed to if it would help it did not. (3) ensured that all necessary subdirectories existed and were owned by "apache". (4) edited LocalSetting.php to assign the variables correctly (4) I tried commenting out the commands to remove temporary files in render.ml to see if I could find where the process was getting stuck. Apparently, none of the temporary files are being created. Despite failed to parse following the instructions as precisely as possible, testing three different versions of mediawiki, and googling extensively, I still get the error "Failed to parse (unknown error)" for even the simplest equation. I know this probably isn't enough information to solve my problem, but any test suggestions that may help me figure out what is going wrong would be greatly, greatly appreciated. Version: 1.6.x Severity: normal OS: Linux Platform: PC URL: http://hood.eas.asu.edu/che211/wikiDetailsReference bz5625 bzimport added a project: MediaWiki-Installer.Nov 21 2014, 9:11 PMbzimport set Reference to bz5625.bzimport added a subscriber: Unknown Object (MLST).bzimport created this task.Apr 17 2006, 5:14 PMbrion added a comment.Apr 17 2006, 9:22 PMComment ActionsPlease look at your apache error log.bzimport added a comment.Apr 18 2006, 5:18 PMComment Actionsheys wrote: The error log contains: sh: /var/www/html/che211/wiki/math/texvc: Permission denied I've verified that all users have permission to access this file, and it is owned by apache. However, I still get the permission denied error for some reason. It is clearly a problem with my php/apache settings and not mediawiki. Any suggestions are greatly appreciated. I've googled but found nothing yet. Jeff bzimport adde
threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ math: Failed to parse (unknown error) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you, Rob. Okay, here's something. The command you suggested did not work as it is. However, after a bit of tweaking, I got it to create a .png file in the images/math directory. Here is what I needed to change: 1) sudo apache --> sudo -u apache. This is trivial. 2) texvc --> ./texvc. It gave me a message: "sudo: ignoring `texvc' found in '.' Use `sudo ./texvc' if this is the `texvc' you wish to run." otherwise. 3) /mediawiki/images/tmp --> /var/www/mediawiki/images/tmp, and similarly for math. With these changes, it worked. The command "sudo -u apache ./texvc /var/www/mediawiki/images/tmp /var/www/mediawiki/images/math "y=x+2" iso-8859-1" created a .png file in the math directory. How do I see a .png file, by the way? I am sure this is hinting at a resolution of the problem, but I am not sure what it is saying. :-) I tried modifying the LocalSettings.php file in the obvious ways: 1) Tried adding math directory to the path: Changed "ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );" to "ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages:$IP/math" );" This did not work. 2) Just for the heck of it, tried changing $wgScriptPath from /mediawiki to /var/www/mediawiki, but this generated some errors when I tried to save a page on the wiki, so I changed that back. Any other suggestions what I can try? Thanks again, - Sonali. _______________________________________________ MediaWiki-l mailing list [hidden email] http://mail.wikipedia.org/mailman/listinfo/mediawiki-l Rob Desbois Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: math: Failed to parse (unknown error) > With these changes, it worked. The command "sudo -u apache ./texvc > /var/www/mediawiki/images/tmp /var/www/mediawiki/images/math "y=x+2" > iso-8859-1" created a .png file in the math directory. How do I see a > .png file, by the way? I only have remote access to my server so to view a png file I just copy it to my wwwroot :) If this last part worked then your setup looks to be ok. > 1) Tried adding math directory to the path: Changed "ini_set( > "include_path", ".:$IP:$IP/includes:$IP/languages" );" to "ini_set( > "include_path", ".:$IP:$IP/includes:$IP/languages:$IP/math" );" This > did not work. I am guessing that the include_path variable controls where MW will look for included PHP files, can you make sure