the error - public function getTable($tableName)
-
{
-
if (!isset($this->_tables[$tableName])) {
-
$this->_tables[$tableName] = Mage::getSingleton('core/resource')->getTableName($tableName);
-
}
-
return $this->_tables[$tableName];
-
}
-
-
/**
-
* Get core resource resource model
-
*
-
* @return Mage_Core_Model_Mysql4_Resource
-
*/
-
protected function _getResource()
-
{
-
return Mage::getResourceSingleton('core/resource');
-
}
-
-
/**
-
* Apply database updates whenever needed
-
*
-
* @return boolean
-
*/
-
static public function applyAllUpdates()
-
{
-
Mage::app()->setUpdateMode(true);
-
self::$_hadUpdates = false;
-
-
$resources = Mage::getConfig()->getNode('global/resources')->children();
-
$afterApplyUpdates = array();
-
foreach ($resources as $resName=>$resource) {
-
if (!$resource->setup) {
-
continue;
-
}
-
$className = __CLASS__;
-
if (isset($resource->setup->class)) {
-
$className = $resource->setup->getClassName();
-
}
-
$setupClass = new $className($resName); }{Class 'Mage_Ips_Model_Mysql4_Setup';
-
$setupClass->applyUpdates();
-
if ($setupClass->getCallAfterApplyAllUpdates()) {
-
$afterApplyUpdates[] = $setupClass;
-
}
-
}
-
-
foreach ($afterApplyUpdates as $setupClass) {
-
$setupClass->afterApplyAllUpdates();
those are the code
the error as below - $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
4 3565 Dormilich 8,658
Recognized Expert Moderator Expert
a little bit more code would be most helpful.
thanks so much for your answer ,i just edit it ,could you check it
thanks so much
tiffany
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.
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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...
|
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...
|
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...
|
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
...
|
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
...
| |
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
...
|
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...
|
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...
|
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...
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |