473,473 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING

3 New Member
the error



Expand|Select|Wrap|Line Numbers
  1. public function getTable($tableName)
  2.     {
  3.         if (!isset($this->_tables[$tableName])) {
  4.             $this->_tables[$tableName] = Mage::getSingleton('core/resource')->getTableName($tableName);
  5.         }
  6.         return $this->_tables[$tableName];
  7.     }
  8.  
  9.     /**
  10.      * Get core resource resource model
  11.      *
  12.      * @return Mage_Core_Model_Mysql4_Resource
  13.      */
  14.     protected function _getResource()
  15.     {
  16.         return Mage::getResourceSingleton('core/resource');
  17.     }
  18.  
  19.     /**
  20.      * Apply database updates whenever needed
  21.      *
  22.      * @return  boolean
  23.      */
  24.     static public function applyAllUpdates()
  25.     {
  26.         Mage::app()->setUpdateMode(true);
  27.         self::$_hadUpdates = false;
  28.  
  29.         $resources = Mage::getConfig()->getNode('global/resources')->children();
  30.         $afterApplyUpdates = array();
  31.         foreach ($resources as $resName=>$resource) {
  32.             if (!$resource->setup) {
  33.                 continue;
  34.             }
  35.             $className = __CLASS__;
  36.             if (isset($resource->setup->class)) {
  37.                 $className = $resource->setup->getClassName();
  38.             }
  39.              $setupClass = new $className($resName); }{Class 'Mage_Ips_Model_Mysql4_Setup';
  40.             $setupClass->applyUpdates();
  41.             if ($setupClass->getCallAfterApplyAllUpdates()) {
  42.                 $afterApplyUpdates[] = $setupClass;
  43.             }
  44.         }
  45.  
  46.         foreach ($afterApplyUpdates as $setupClass) {
  47.             $setupClass->afterApplyAllUpdates();
those are the code


the error as below

Expand|Select|Wrap|Line Numbers
  1. $setupClass = new $className($resName); }{Class 'Mage_Ips_Model_Mysql4_Setup'

the clue from magento is
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /home1/thrsixj5/public_html/includes/src/Mage_Core_Model_Resource_Setup.php on line 160

any expert can help ,really appreciated it

thanks in advance
Mar 23 '11 #1
4 3565
Dormilich
8,658 Recognized Expert Moderator Expert
a little bit more code would be most helpful.
Mar 23 '11 #2
tiff zhan
3 New Member
thanks so much for your answer ,i just edit it ,could you check it

thanks so much

tiffany
Mar 24 '11 #3
Dormilich
8,658 Recognized Expert Moderator Expert
ok, that whole line is wrong.

first, you should wrap $className in {}.
second, the }{ after that seem off.
third, class is a reserved keyword for declaring classes, which you don’t do there.
Mar 24 '11 #4
tiff zhan
3 New Member
God ,still dont work ,i am sorry maybe i can have ur email ? sorry

my email is ydjseller01@gmail.com

if you got any chance let me know

thanks
Mar 26 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Wescotte | last post by:
The error message Parse error: syntax error, unexpected $end in FILE on line X is one I run into frequently and I know the cause is I missed an ending quote. Is there an easy way to determine...
36
by: rhys | last post by:
My Gurus and Angels -- Please pardon this old-school programmer, only recently enlightened to open-source, having been trapped in the convenience of proprietary lingos for way too long. My...
3
by: sclarkstone | last post by:
Im getting this error; Parse error: syntax error, unexpected T_STRING, expecting ':' or ';' with this line; header ('postcodesearch.php?e=nw&pcode=',); I cant find whats wrong, can anyone...
3
paulrajj
by: paulrajj | last post by:
hi to all, i am getting syntax error on my code.. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in D:\xampp\htdocs\Dummy\paulraj\matrim\exam.php on line 62 ...
10
by: benicio | last post by:
Parse error: syntax error, unexpected T_STRING, expecting '(' in C:\wamp\www\study_group\includes\functions.php on line 19 I got this error and this syntax is from 8 to 19th line. <?php ...
1
by: karine | last post by:
Hi, I keep getting this error message "Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /home/env49986/public_html/welcome.php on line 16" below is the code ...
2
by: Vicki Hendra | last post by:
Hi I am new to php fullstop I and colleagues have setup wordpress blogs for our local towns, giving the local businesses free advertisment. Part of the problem started when using wordpress...
5
by: Adam Pelling | last post by:
I'm getting this error Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/neblncbt/public_html/forum/includes/acp/acp_board.php on line 69 Here is the...
2
by: lenamarie | last post by:
I received this full message today after updating the copyright year. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.