| | |
T_STRING error (line 183) - NextGen Gallery Plugin
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jul 2009
Posts: 2
Reputation:
Solved Threads: 0
Hey all. First time poster here. This looks like a great community!
I'm getting a "Parse error: syntax error, unexpected T_STRING" error. I'm just starting to get into PHP and can't for the life of me see where the problem is. This is part of the NextGen Gallery plugin for WordPress. The error is ocurring on line 183, which is the line:
I don't see any quotes out of place, or missing semi colons. Any ideas??
If you have the latest version of the nextgen gallery plugin it's the file located: lib/gd.thumbnail.inc.php
Code snippet context is here (problem code is near middle - {edit: line 17 in post}):
Thanks for any help in advance!
I'm getting a "Parse error: syntax error, unexpected T_STRING" error. I'm just starting to get into PHP and can't for the life of me see where the problem is. This is part of the NextGen Gallery plugin for WordPress. The error is ocurring on line 183, which is the line:
$this->oldImage = ini ImageCreateFromJpeg($this->fileName); I don't see any quotes out of place, or missing semi colons. Any ideas??
If you have the latest version of the nextgen gallery plugin it's the file located: lib/gd.thumbnail.inc.php
Code snippet context is here (problem code is near middle - {edit: line 17 in post}):
php Syntax (Toggle Plain Text)
// increase memory-limit if possible, GD needs this for large images @ini_set('memory_limit', '256M'); if($this->error == false) { // Check memory consumption if file exists $this->checkMemoryForImage($this->fileName); } //initialize resources if no errors if($this->error == false) { switch($this->format) { case 'GIF': $this->oldImage = ImageCreateFromGif($this->fileName); break; case 'JPG': $this->oldImage = ini ImageCreateFromJpeg($this->fileName); break; case 'PNG': $this->oldImage = ImageCreateFromPng($this->fileName); break; } if (!$this->oldImage) { $this->errmsg = 'Create Image failed. Check memory limit'; $this->error = true; } else { $size = GetImageSize($this->fileName); $this->currentDimensions = array('width'=>$size[0],'height'=>$size[1]); $this->newImage = $this->oldImage; $this->gatherImageMeta(); } }
Thanks for any help in advance!
Last edited by cinemaduro; Jul 3rd, 2009 at 5:35 pm. Reason: add line number
•
•
Join Date: Jul 2009
Posts: 2
Reputation:
Solved Threads: 0
Great, thanks, that seems to have gotten rid of the T_STRING error...now I'm just getting errors that say "resize failed: Check memory limit" guess I'll see if I can edit the php.ini file on this server or not...thought that's what
@ini_set('memory_limit', '256M'); was for. Thanks again for the quick response! Last edited by cinemaduro; Jul 3rd, 2009 at 6:31 pm.
![]() |
Similar Threads
- Retrieving the number that the of error line of code? (PHP)
- Desktop error Line 65 (Windows NT / 2000 / XP)
- value of string is cannot conerted into system.array (VB.NET)
- unexspected T_STRING on line 101 (PHP)
- How to print error with line number in using Log4j (Java)
- T_string error message (PHP)
- Parse error at last line of page's code (PHP)
Other Threads in the PHP Forum
- Previous Thread: Update div for filelisting after file upload
- Next Thread: Regex help
| Thread Tools | Search this Thread |
ajax apache api array beginner binary body broken cakephp checkbox class cms code cookies cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert interactive ip javascript job joomla js limit link login mail mediawiki menu mlm mobile msqli_multi_query multiple mycodeisbad mysql navigation oop outofmemmory paging parse paypal pdf php problem procedure query radio ram random recursion regex remote script search server sessions sms source space sql stored subdomain syntax system table tutorial unicode update upload url validator variable video web webapplications websitecontactform xml youtube






