Admin area doesnt work

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
cosp
Forum Members
Forum Members
Posts: 24
Joined: Mon Mar 17, 2008 2:05 am

Admin area doesnt work

Post by cosp »

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?
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: Admin area doesnt work

Post by cubix »

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.
cosp
Forum Members
Forum Members
Posts: 24
Joined: Mon Mar 17, 2008 2:05 am

Re: Admin area doesnt work

Post by cosp »

well fixed :D

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]
Attachments
admin.GIF
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Admin area doesnt work

Post by Nullig »

That could be a php memory_limit problem. Try adding:

Code: Select all

ini_set("memory_limit", "32M");
near the top of your config.php file.

Nullig
cosp
Forum Members
Forum Members
Posts: 24
Joined: Mon Mar 17, 2008 2:05 am

Re: Admin area doesnt work

Post by cosp »

nope, no use...
Pierre M.

Re: Admin area doesnt work

Post by Pierre M. »

Hello,
cosp wrote: admin panel appears as plain html page... can you please help me on this?
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.

Pierre M.
steve_c
New Member
New Member
Posts: 5
Joined: Thu Mar 20, 2008 9:08 am

Re: Admin area doesnt work

Post by steve_c »

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  ;D

thx in advance
cosp
Forum Members
Forum Members
Posts: 24
Joined: Mon Mar 17, 2008 2:05 am

Re: Admin area doesnt work

Post by cosp »

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...
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: Admin area doesnt work

Post by cubix »

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
steve_c
New Member
New Member
Posts: 5
Joined: Thu Mar 20, 2008 9:08 am

Re: Admin area doesnt work

Post by steve_c »

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!
Last edited by steve_c on Thu Mar 20, 2008 2:00 pm, edited 1 time in total.
steve_c
New Member
New Member
Posts: 5
Joined: Thu Mar 20, 2008 9:08 am

Re: Admin area doesnt work

Post by steve_c »

-> 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  ;D
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: Admin area doesnt work

Post by cubix »

hi steve_c,

so reinstalling fixed everything? did you keep your existing database?
steve_c
New Member
New Member
Posts: 5
Joined: Thu Mar 20, 2008 9:08 am

Re: Admin area doesnt work

Post by steve_c »

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  ;D

but thx again! i think it's essential for a tool like that to have a good community!
cosp
Forum Members
Forum Members
Posts: 24
Joined: Mon Mar 17, 2008 2:05 am

Re: Admin area doesnt work

Post by cosp »

cubix,
i tested it, and got your statement verified....
shifting host :D
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Admin area doesnt work

Post by duclet »

I take it this is no longer a problem with DLCodePress?
Locked

Return to “[locked] Installation, Setup and Upgrade”