|
|
|||||||
| About Us | Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Learning PHP
![]() ![]() ![]() Join Date: Nov 2001
Location: Front of my Computer
Posts: 386
|
PHP Error !!!
I'm just using PHP-Nuke.
When I'm changing the Themes, it gives me an error. 1st Error: Parse error: parse error, expecting `','' or `';'' in /users/coolfreepage.com/smukara/themes/Slash/theme.php on line 246 2nd error: Fatal error: Call to undefined function: themesidebox() in /users/coolfreepage.com/smukara/mainfile.php on line 328 What're those means? how to count the lines in php? can i use MSWord facility to count the lines? Thanks
__________________
Learning PHP and Designing a Website PC Spec: Pentium II 333Mhz; SDRAM 64 Mb; I740 Graphic Card NextGen PC Spec: AMD AthlonXP 2.6GHz; DDRAM 512Mb; PixelView FX5200 Ultra; MoBo Abit NF7 |
|
|
|
|
|
#2 (permalink) |
|
Registered User
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2002
Location: Bogota, Colombia
Posts: 1,157
|
1) You're probably missing a ; somewhere. The easy way is to download <a href="http://www.ultraedit.com">UltraEdit</a> which is the best editor out there IMO.
2) You're trying to use a function that hasn't been declared, i.e. PHP doesn't know what themeinsidebox() does so it cannot use it in the code. Either it hasn't been included from an external file or it doesn't exist.
__________________
Flaretech.biz web hosting |
|
|
|
|
|
#4 (permalink) |
|
Learning PHP
![]() ![]() ![]() Join Date: Nov 2001
Location: Front of my Computer
Posts: 386
|
squall84: 1.The Theme file is Slash Theme from PHPNuke Package (theme.php)
2. The problem is the mainfile.php from PHPNuke package. You can get it there (sorry can't upload it coz i'm currently playing on cybernet)
__________________
Learning PHP and Designing a Website PC Spec: Pentium II 333Mhz; SDRAM 64 Mb; I740 Graphic Card NextGen PC Spec: AMD AthlonXP 2.6GHz; DDRAM 512Mb; PixelView FX5200 Ultra; MoBo Abit NF7 |
|
|
|
|
|
#5 (permalink) |
|
NSBQ nut
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2001
Location: .de
Posts: 1,208
|
The second error is most likely a follow up error to the first one. If the function has been declared in the theme.php, I'm pretty sure the only thing you need to do is to fix the first error and the second will be gone, too.
Could you post line 246 and some lines before and after, we might be able to find the error. (I'm too lazy to download it myself )
__________________
Bred for its skills in magic |
|
|
|
|
|
#7 (permalink) |
|
Learning PHP
![]() ![]() ![]() Join Date: Nov 2001
Location: Front of my Computer
Posts: 386
|
btw, here's the files (theme.php and mainfile.php)
and i dont have ultraedit yet
__________________
Learning PHP and Designing a Website PC Spec: Pentium II 333Mhz; SDRAM 64 Mb; I740 Graphic Card NextGen PC Spec: AMD AthlonXP 2.6GHz; DDRAM 512Mb; PixelView FX5200 Ultra; MoBo Abit NF7 |
|
|
|
|
|
#8 (permalink) |
|
NSBQ nut
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2001
Location: .de
Posts: 1,208
|
Change line 246 in theme.php to this:
PHP Code:
__________________
Bred for its skills in magic |
|
|
|
|
|
#9 (permalink) |
|
Learning PHP
![]() ![]() ![]() Join Date: Nov 2001
Location: Front of my Computer
Posts: 386
|
Nezzar: Thanks for your solution.
![]() Now, How to Change this PHPNuke Logo to our logo? I've searched the option but can't find a hint <Gamer-X>
__________________
Learning PHP and Designing a Website PC Spec: Pentium II 333Mhz; SDRAM 64 Mb; I740 Graphic Card NextGen PC Spec: AMD AthlonXP 2.6GHz; DDRAM 512Mb; PixelView FX5200 Ultra; MoBo Abit NF7 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|