Parse Error Syntax Error Unexpected T_paamayim_nekudotayim Expecting T_ns_separator
here for a quick overview of the site Help Center Detailed answers to any questions syntax error, unexpected '::' (t_paamayim_nekudotayim) laravel you might have Meta Discuss the workings and policies of this paamayim nekudotayim site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up What does this mean? “Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM” up vote 48 down vote favorite 8 T_PAAMAYIM_NEKUDOTAYIM sounds really exotic, but most certainly absolutely nonsense to me. I traced it all down to this lines of code: config; return $cnf::getConfig($key); } function __construct() { $this->config = new Config(); } } ?> In the constructor I create a Config object. Here's the class: final class Config { private static $instance = NULL; private static $config; public static function getConfig($key) { return self::$config[$key]; } public static function getInstance() { if (!self::$instance) { self::$instance = new Config(); } return self::$instance; } private function __construct() { // include configuration file include __ROOT_INCLUDE_PATH . '/sys/config/config.php'; // defines a $config array $this->config = $config; } } No idea why this doesnt work / what the error means... php share|improve this question asked Dec 27 '09 at 14:02 openfrog 14.4k38169305 possible duplicate of PHP expects T_PAAMAYIM_NEKUDOTAYIM? –John Slegers Jul 4 '15 at 14:32 add a comment| 7 Answers 7 active oldest votes up vote 57 down vote accepted T_PAAMAYIM_NEKUDOTA
7 Error whilst upgrading Semantic Mediawiki store 8 error: "unexpected T_PAAMAYIM_NEKUDOTAYIM" (PHP 5.3 Namespace issue) 9 Lack of Looping Any ideas on how to link to the previous or next page? When I surround a {{}} command in [[ ]], it somehow displays as a heading: [[{{#pagebefore:}}]] | [[{{#pageafter:}}]] you could try the latest version; get it here. Jean-Lou Dupont 23:59, 23 August 2007 (UTC) Trouble with usage[edit] Could you give an example of how to insert this into a wiki page? I don't understand the instructions. I've tried: {{#pagebefore: [context]|Main|Title_of_my_Page|Category_Name }} http://stackoverflow.com/questions/1966010/what-does-this-mean-parse-error-syntax-error-unexpected-t-paamayim-nekudotay And all I get is the final page within that category. Help? The brackets [ ] mean optional parameters. Some examples: {{#pagebefore:category=All_extensions}} {{#pageafter:category=All_extensions}} Jean-Lou Dupont 11:44, 15 November 2007 (UTC) MySQL problem with apostrophes (RESOLVED)[edit] Whenever I try to use this extension on an article that has an apostrophe in the title, the saved page displays the following error message: A https://www.mediawiki.org/wiki/Extension_talk:PageAfterAndBefore database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "". MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[title of article after the apostrophe]')=-1 AND `wiki_categorylinks`.cl_to = 'Tran' at line 1 (mysql.[my database])". Do you know how this can be fixed? Thanks. Many thanks to you! I had forgotten to 'escape' properly the parameters before passing them to the DB layer -> potential for SQL injection attacks. I have fixed the issue in v1.0.2. Just do pear upgrade mediawiki/pageafterandbefore (assuming you are using PEAR). Jean-Lou Dupont 16:36, 20 November 2007 (UTC) filtercurrent?[edit] After looking through the code (although I am not fluent in PHP) and what documentation there is, I am baffled as to the actual functionality of the filtercurrent parameter. If I set filtercurrent=yes in a call to firstpage on the first page of the category, it has the same behavior as if filte
a reserved word Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /usr/local/www/apache22/data/wiki/includes/Namespace.php on line https://sourceforge.net/p/semediawiki/mailman/message/23905342/ 46 the solution is to open Namespace.php and change line 46 from class Namespace { to class syntax error MWNamespace { at this point the error message will change to this weird thing PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting T_NS_SEPARATOR next you have to open up these files inside includes Namespace.php Title.php parse error syntax ImageGallery.php SkinTemplate.php Parser.php RecentChange.php you replace all instances of Namespace to MWNamespace it should work as normal after that the alternative would be to run a shell script such as in this example but alas i did not pay for shell access... Backing up Mediawiki http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki http://code.google.com/p/wikiteam/wiki/NewTutorial python dumpgenerator.py --index=http://domain.com/wiki/index.php --xml --curonly --images --delay=5 Retrieved from "http://dbbd.sg/wiki/index.php?title=Backing_Up_Mediawiki&oldid=6712" Navigation menu Personal tools Namespaces Page Discussion Variants Views Read View source View history More Search Navigation Main pageRecent changesRandom pageHelp Tools What links hereRelated changesSpecial pagesPrintable versionPermanent linkPage information This page was last modified on 16 June 2013, at 12:07. Privacy policy About Wikicliki Disclaimers
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Semantic MediaWiki Mailing Lists Semantic MediaWiki Lets you store and query data within the wiki's pages. Brought to you by: bn2vs, kghbln, mkroetzsch, vrandezo Summary Files Reviews Support Wiki Mailing Lists News semediawiki-devel semediawiki-user Re: [Semediawiki-user] Simple Question Re: [Semediawiki-user] Simple Question From: Denny Vrandecic