Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorException from line 63 of "Csv.php": PHP Notice: fputcsv(): delimiter must be a single character #3515

Closed
kghbln opened this issue Oct 8, 2018 · 0 comments
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error
Milestone

Comments

@kghbln
Copy link
Member

kghbln commented Oct 8, 2018

Setup and configuration

  • MediaWiki | 1.31.1 (590e94d)00:42, 3 October 2018
  • PHP | 7.0.32-0ubuntu0.16.04.1 (apache2handler)
  • MySQL | 5.7.23-0ubuntu0.16.04.1
  • Semantic MediaWiki | 3.0.0-rc.2 (4751a28) 22:15, 3 October 2018

Issue

ErrorException from line 63 of /var/www/html/02310/w/extensions/SemanticMediaWiki/src/Utils/Csv.php: PHP Notice: fputcsv(): delimiter must be a single character

The results however get exported as expected.

Stack trace

2018-10-06 21:46:48 Ubuntu-1510-wily-64-minimal DB0231020151216: [2e61330fb8cd37465af51458] /wiki/Special:Ask/cl:YzpdkMFOwzAMhp-FOyFVq4EUKZcxTXAGcc-6vyNaYgfHncTbk24coJIPtvV9tuwcIqVwQPI2xRzVD5blCPFH1NFWFvV74Wz67gKpkcnyNFUs3MSSg_qxXppKZ09MsBVBxs_bxOe3D6vIJQWF_9UXskHF35v-kQ61mGFrzWbbYsdjpInbqhyqQlpSwgnOvSAV97qoaL2vGRJRzWa3RN-t5RToNF890Ar6f4lzd93D0w2xZtiv7mydd_5TF4Hqd5FI6lVm2Jnai0LBtfoB   ErrorException from line 63 of /.../extensions/SemanticMediaWiki/src/Utils/Csv.php: PHP Notice: fputcsv(): delimiter must be a single character
#0 [internal function]: MWExceptionHandler::handleError(integer, string, string, integer, array)
#1 /.../extensions/SemanticMediaWiki/src/Utils/Csv.php(63): fputcsv(resource, array, string)
#2 /.../extensions/SemanticMediaWiki/src/Query/ResultPrinters/CsvFileExportPrinter.php(176): SMW\Utils\Csv->toString(array, array, string)
#3 /.../extensions/SemanticMediaWiki/src/Query/ResultPrinters/CsvFileExportPrinter.php(123): SMW\Query\ResultPrinters\CsvFileExportPrinter->getCsv(SMW\Utils\Csv, SMWQueryResult)
#4 /.../extensions/SemanticMediaWiki/src/Query/ResultPrinters/ResultPrinter.php(342): SMW\Query\ResultPrinters\CsvFileExportPrinter->getResultText(SMWQueryResult, integer)
#5 /.../extensions/SemanticMediaWiki/src/Query/ResultPrinters/ResultPrinter.php(307): SMW\Query\ResultPrinters\ResultPrinter->buildResult(SMWQueryResult)
#6 /.../extensions/SemanticMediaWiki/src/Query/ResultPrinters/FileExportPrinter.php(52): SMW\Query\ResultPrinters\ResultPrinter->getResult(SMWQueryResult, array, integer)
#7 /.../extensions/SemanticMediaWiki/src/MediaWiki/Specials/SpecialAsk.php(331): SMW\Query\ResultPrinters\FileExportPrinter->outputAsFile(SMWQueryResult, array)
#8 /.../extensions/SemanticMediaWiki/src/MediaWiki/Specials/SpecialAsk.php(169): SMW\MediaWiki\Specials\SpecialAsk->makeHTMLResult()
#9 /.../includes/specialpage/SpecialPage.php(522): SMW\MediaWiki\Specials\SpecialAsk->execute(string)
#10 /.../includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(string)
#11 /.../includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#12 /.../includes/MediaWiki.php(861): MediaWiki->performRequest()
#13 /.../includes/MediaWiki.php(524): MediaWiki->main()
#14 /.../index.php(42): MediaWiki->run()
#15 {main}
@kghbln kghbln added the bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error label Oct 8, 2018
@kghbln kghbln added this to the SMW 3.0.1 milestone Oct 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Occurrence of an unintended or unanticipated behaviour that causes a vulnerability or fatal error
Projects
None yet
Development

No branches or pull requests

1 participant