LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-29-2010, 06:46 PM   #1
mike24078
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
Parse error: syntax error (install_admin_menu.php line 2)


Parse error: syntax error, unexpected '.' in /home/localgay/public_html/community/SOURCE/modules/JOOsocial/JOOMeebo/install/install_admin_menu.php on line 2


This is the error that i am getting
BELOW IS THE CODE
<?php
require_once( ../../../../inc/header.inc.php );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );

$strAdmMenu =
"
INSERT INTO `sys_menu_admin` (

Last edited by mike24078; 03-29-2010 at 07:00 PM. Reason: Give thread a proper title.
 
Old 03-29-2010, 06:48 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,077

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
perhaps a ; is missing? perhaps try downloading another copy? if you post a cut paste of the first handful of lines of code?
 
Old 03-29-2010, 06:56 PM   #3
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Please show us the code.

I have edited your thread title to be more meaningful. Please try to do the same in the future. Also, I *might* move your thread to the /Programming forum since it appears so far to be a programmatical/code error only.

For specific help with this problem (though the error itself is pretty self-explanatory), I suggest posting for us the first half-dozen lines of the file in question. When posting chunks of code, please use [code] tags-- instructions on this can be seen here: Code Tag Usage

Kind regards & welcome to LQ!

Sasha
 
Old 03-29-2010, 06:57 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,665

Rep: Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683Reputation: 1683
some more info would be VERY helpful
What program is giving the error ?
What is your operating system ?
Where DID you get this program ? A link to it!
 
Old 03-29-2010, 07:08 PM   #5
mike24078
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Syntac error

This is the error

Parse error: syntax error, unexpected '.' in /home/localgay/public_html/community/SOURCE/modules/JOOsocial/JOOMeebo/install/install_admin_menu.php on line 2




<?php
require_once( ../../../../inc/header.inc.php );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );

$strAdmMenu =
"
INSERT INTO `sys_menu_admin` (
 
Old 03-29-2010, 07:11 PM   #6
mike24078
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
This is more of the code


<?php
require_once( ../../../../inc/header.inc.php );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );

$strAdmMenu =
"
INSERT INTO `sys_menu_admin` (
`ID` ,
`parent_id` ,
`name` ,
`Title` ,
`Url` ,
`Description` ,
`Icon` ,
`Icon_large` ,
`Check` ,
`Order`


)
VALUES
(
'123456789' , '0', 'JOOsocial', 'JOOsocial', '', 'JOOsocial-JOOapps ', 'modules/JOOsocial/JOOMeebo/|mm_joosocial.png', 'modules/JOOsocial/JOOMeebo/|mm_joosocial.png', '', '123456'
);

";

db_res($strAdmMenu);

$strInsert =
"INSERT INTO `sys_options` (
`Name` ,
`VALUE` ,
`kateg` ,
`desc` ,
`Type` ,
`check` ,
`err_text` ,
`order_in_kateg`,
`AvailableValues`
)
VALUES
(
'joo_meebo_acc', 'joosocial_su76do', '1911', 'Account Name', 'digit', '', '', 2, ''
),
(
'enable_joo_meebo', 'on', '1911', 'Enable JOOMeebo', 'checkbox', '', '', 1, ''
);

";

db_res($strInsert);
 
Old 03-29-2010, 07:18 PM   #7
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
Quote:
Originally Posted by mike24078 View Post
This is the error

Parse error: syntax error, unexpected '.' in /home/localgay/public_html/community/SOURCE/modules/JOOsocial/JOOMeebo/install/install_admin_menu.php on line 2




<?php
require_once( ../../../../inc/header.inc.php );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );

$strAdmMenu =
"
INSERT INTO `sys_menu_admin` (
I am not at all a PHP guy, but it looks you need a quoted string, i.e. it apparently should be

Code:
require_once(           '../../../../inc/header.inc.php' );
.
 
0 members found this post helpful.
Old 03-29-2010, 07:20 PM   #8
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
http://www.linuxquestions.org/questi...88#post3917288

Do not double-post your question in more than one location. You have begun to get help and advice already, at the first location you posted your question (linked above).

I am going to bring your other thread over here to Programming now, and then we'll probably merge the two together.

Sasha
 
1 members found this post helpful.
Old 03-29-2010, 07:45 PM   #9
mike24078
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I am trying to integrate JOOMeebo into my community website powered by Dolphin 7
 
Old 03-30-2010, 03:58 AM   #10
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,376

Rep: Reputation: 147Reputation: 147
Well Sergei gave you the correct answer. Did it work? Have you got some more problems? If so please explain the new problems.
 
Old 04-08-2010, 08:34 AM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Duplicate threads merged
 
  


Reply

Tags
error


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
logrotate permissions problem - can't figure it out ocgltd Linux - Server 1 09-25-2008 07:21 AM
Can't figure out update problem Rustylinux Linux - Software 8 04-22-2008 06:56 PM
Can't figure out wpa-supplicant problem replica9000 Linux - Wireless Networking 6 09-06-2007 05:39 PM
c++ I can't figure out what the problem is, did it same way as I did another thing exodist Programming 9 04-09-2004 01:45 PM
Installation Problem.Can't Figure it out. Rizwan Sarwar Sundhu Linux - Software 0 04-25-2001 09:17 PM


All times are GMT -5. The time now is 07:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration