Parse Error Syntax Error Unexpected T_paamayim_nekudotayim
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss parse error syntax error unexpected t_paamayim_nekudotayim wordpress the workings and policies of this site About Us Learn more
Syntax Error, Unexpected 'protected' (t_protected)
about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow syntax error, unexpected '::' (t_paamayim_nekudotayim) laravel 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 parse error syntax error unexpected expecting t_paamayim_nekudotayim 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:
Php Parse Error Syntax Error Unexpected Expecting
// Here's the problem somewhere... $cnf = $this->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_NEKUDOTAYIM is the double colon scope resolution thingy PHP uses - :: Quick glance at your code, I think this line: return $cnf::getConfig($key); should be return $cnf->getConfig($key); The fir
Hacks » [Resolved] Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in… [Resolved] Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in… ProSam @prosam 4 months, 1 week parse error: syntax error, unexpected '[' php ago Getting this error on the latest version of the event bdfl calendar Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /wp-content/plugins/all-in-one-event-calendar/lib/calendar-feed/ics.php on line 409 Please help https://wordpress.org/plugins/all-in-one-event-calendar/ Viewing
Scope Resolution Operator
15 replies - 1 through 15 (of 59 total) 1 2 … 4 → jhwardjr @jhwardjr 4 months, 1 week ago Same error for me. Crashes my http://stackoverflow.com/questions/1966010/what-does-this-mean-parse-error-syntax-error-unexpected-t-paamayim-nekudotay site when this plugin is installed. valcilon @valcilon 4 months, 1 week ago +1 Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in […]/wp-content/plugins/all-in-one-event-calendar/lib/calendar-feed/ics.php on line 409 joehark @joehark 4 months, 1 week ago crashed every site I host that uses this plugin. Needs fix fast! mrosagracia @mrosagracia 4 months, 1 week ago The plugin failed https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_paamayim_nekudotayim-in/ to update the latest version and I have the same error. The web is fully fall lion1968 @lion1968 4 months, 1 week ago Same problem, after last update the web is fully fall, i had to disable the plugins. mrosagracia @mrosagracia 4 months, 1 week ago When updating the new version of the plugin has crashed the web and has been this error and it also when I want to go to manage the web. Please give a solution as soon as possible, it is urgent and it looks really bad .. Inicio http://kundaliniyogazaragoza.com/wp-admin/ Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/kundalini/domains/kundaliniyogazaragoza.com/public_html/wp-content/plugins/all-in-one-event-calendar/lib/calendar-feed/ics.php on line 409 schnittverhext @schnittverhext 4 months, 1 week ago same problem, codemovement.pk @codemovementpk 4 months, 1 week ago Hello, I have installed above plugin to replicate the issue but it's working fine. I suggest that rename the ‘all-in-one-event-calendar‘ from ftp and download plugin to upload to plugin folder. Hope this would solve the issue. Thank you. joehark
Parse error: T_PAAMAYIM_NEKUDOTAYIM The SitePoint Forums have moved. You can now find them here. This forum is now closed to new posts, but you can browse existing content. You http://www.sitepoint.com/forums/showthread.php?633033-Class-Variable-php-Parse-error-T_PAAMAYIM_NEKUDOTAYIM can find out more information about the move and how to open a new account (if necessary) here. If you get stuck you can get support by emailing forums@sitepoint.com If this is your http://phpsadness.com/sad/1 first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing syntax error messages, select the forum that you want to visit from the selection below. SitePoint Sponsor User Tag List Results 1 to 8 of 8 Thread: Class::Variable php Parse error: T_PAAMAYIM_NEKUDOTAYIM Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Aug 18, 2009,04:32 #1 thejackel View Profile View Forum Posts SitePoint Zealot Join Date Aug 2006 Location parse error syntax Newcastle, England Posts 142 Mentioned 0 Post(s) Tagged 0 Thread(s) Class::Variable php Parse error: T_PAAMAYIM_NEKUDOTAYIM Hi, I have a class that contains a static variable: Code PHP: class Page { ... static $name = 'Standard Page'; ... } I can call it using Page::$name. However, I would like to call the static variable using a class name that is stored in a variable. i.e. Code PHP: $class_name = 'Page'; echo $class_name::$name. However, when I try to call it this way I receive the following error: Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ',' or ';' in.... I'm pretty sure this is hebrew or something and it means unexpected :: or something?! Is it possible to call a static variable the above way? Thanks in advance Aug 18, 2009,05:54 #2 AnthonySterling View Profile View Forum Posts Twitter: @AnthonySterling Join Date Apr 2008 Location North-East, UK. Posts 6,111 Mentioned 3 Post(s) Tagged 0 Thread(s) Your syntax is a little out. PHP Code: classPage
{
constNAME='StandardPage';
publicstatic$name='StandardPage';
}
$cl
name for what should be T_DOUBLE_COLON, and is what it uses when it wants to express to the developer that it did (or did not) want to see :: at that point in the code. PHP 5.4 still calls it T_PAAMAYIM_NEKUDOTAYIM, but includes '::' in the error message, making it only mildly less confusing: $ php -r '::' Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in Command line code on line 1 Significance: Fast DebuggingIt is very important to be able to quickly debug issues in your application. When every second of downtime costs your company money, bad error messages can mean thousands of dollars in unnecessary losses and hours of wasted developer time. Languages posing to be used in large applications need to ensure that developers can quickly discern the cause of an issue. « Previous Sadness Sadness Index Next Sadness »