Admin area doesnt work
Admin area doesnt work
I developed my site using cms ms 1.2.3 on php5 and mysql5. After completeing the intial version, I dumped all the db to mysql40 compatible, as the host runs on mysql4 and php4. Now i uploaded the site to http://www.cosp.org.pk/beta/ and modified the config.php as well as populated the db. Problem comes when the front end of the site works fine, but when i try to access the admin area e.g. http://www.cosp.org.pk/beta/admin i get : "Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/cosp/public_html/beta/modules/DLCodePress/DLCodePress.module.php on line 17"
Both config files are:http://pastebin.ca/945613
Can anyone help me why i am facing this error?
Both config files are:http://pastebin.ca/945613
Can anyone help me why i am facing this error?
Re: Admin area doesnt work
remove the DLCodePress module and it should fix itself. you will probably need to delete the folder as you cant get the module list.
i think its something to do with it not working on php4, however, im no developer so someone else might need to shed some light on the issue.
i think its something to do with it not working on php4, however, im no developer so someone else might need to shed some light on the issue.
Re: Admin area doesnt work
well fixed 
my misatke was that i was adding a '/' at the end of all paths in the config.php on the server, deleted that last '/' and it lets me login to admin panel.
However admin panel appears as plain html page... can you please help me on this? i can provide you access to admin panel if required.
[screenshot attached]

my misatke was that i was adding a '/' at the end of all paths in the config.php on the server, deleted that last '/' and it lets me login to admin panel.
However admin panel appears as plain html page... can you please help me on this? i can provide you access to admin panel if required.
[screenshot attached]
Re: Admin area doesnt work
That could be a php memory_limit problem. Try adding:
near the top of your config.php file.
Nullig
Code: Select all
ini_set("memory_limit", "32M");
Nullig
Re: Admin area doesnt work
nope, no use...
Re: Admin area doesnt work
Hello,
Pierre M.
This has been answered several times and may be hosting dependant (not CMSms related). Please search the forum (with google) for admin no style, no style in admin, no stylesheet in admin and such keywords.cosp wrote: admin panel appears as plain html page... can you please help me on this?
Pierre M.
Re: Admin area doesnt work
hi, i'm new here!
got the same problem cosp has!
i've been searching the forum for 2 days now and found enough posts about that problem, but none of them worked for me.
i'm really a noob so maybe i already messed everything up (made all changes ppl suggested and still nothing happened)
my site is almost finished, i don't really wanna set everything up again from the start.
also i'm pretty sure that it's not a hosting dependant issue since the admin panel worked fine until i tried to install a module.
there it gave me an error and all admin panel styles were gone! (funny thing is that the login screen is still styled)
so if anyone got another solution for that ... appreciated
thx in advance
got the same problem cosp has!
i've been searching the forum for 2 days now and found enough posts about that problem, but none of them worked for me.
i'm really a noob so maybe i already messed everything up (made all changes ppl suggested and still nothing happened)
my site is almost finished, i don't really wanna set everything up again from the start.

also i'm pretty sure that it's not a hosting dependant issue since the admin panel worked fine until i tried to install a module.
there it gave me an error and all admin panel styles were gone! (funny thing is that the login screen is still styled)
so if anyone got another solution for that ... appreciated

thx in advance
Re: Admin area doesnt work
steve i myself havent gotten rid of that problem, and its not host dependent, as i tried to install it on another host nd faced the same problem. And i am having that problem since the start since i moved to this host, its not specific to installation of any module. I also search and tried everything, but at the end i am as lost as steve is...
Re: Admin area doesnt work
steve,
you mention everything was fine until you installed a module.
chown the files you installed and delete them via ftp or a shell account.
if this new to you, please ask your hosting provider or try google. chances are the module did not install properly.
cosp,
im pretty sure dlcodepress wont work with any version of php under 5. in your first post you mentioned moving from php 5 to 4
you mention everything was fine until you installed a module.
chown the files you installed and delete them via ftp or a shell account.
if this new to you, please ask your hosting provider or try google. chances are the module did not install properly.
cosp,
im pretty sure dlcodepress wont work with any version of php under 5. in your first post you mentioned moving from php 5 to 4
Re: Admin area doesnt work
hi cubix, did as you said and now i can access the modules section in my admin panel again...
but still no style (wouldn't be much of a problem but i can't access the option or help sites)
btw: feel stupid that i didn't think of that
thx!!!
edit: can't think of anything that could have happened when i installed the module
went like this:
uploading module (style was there)
error message (style still there)
going to "template" (page refreshes and style is gone)
also no entry in system protocol!
but still no style (wouldn't be much of a problem but i can't access the option or help sites)
btw: feel stupid that i didn't think of that

thx!!!
edit: can't think of anything that could have happened when i installed the module
went like this:
uploading module (style was there)
error message (style still there)
going to "template" (page refreshes and style is gone)
also no entry in system protocol!
Last edited by steve_c on Thu Mar 20, 2008 2:00 pm, edited 1 time in total.
Re: Admin area doesnt work
-> installed everything new
couldn't play around anymore, site must be finished soon
thx again!
ps: now i'll give the formbuilder module another try, so maybe i'll be back here soon

couldn't play around anymore, site must be finished soon
thx again!
ps: now i'll give the formbuilder module another try, so maybe i'll be back here soon

Re: Admin area doesnt work
hi steve_c,
so reinstalling fixed everything? did you keep your existing database?
so reinstalling fixed everything? did you keep your existing database?
Re: Admin area doesnt work
nope, set it all up again from the start...
just realized that all the solutions i read were for older versions
but the problem still appears (with different reason as it seems)
might be a good point for documentation
-> if someone with more skill than me has alot of spare time
but thx again! i think it's essential for a tool like that to have a good community!
just realized that all the solutions i read were for older versions
but the problem still appears (with different reason as it seems)
might be a good point for documentation
-> if someone with more skill than me has alot of spare time

but thx again! i think it's essential for a tool like that to have a good community!
Re: Admin area doesnt work
cubix,
i tested it, and got your statement verified....
shifting host
i tested it, and got your statement verified....
shifting host

Re: Admin area doesnt work
I take it this is no longer a problem with DLCodePress?