Post by wedhaaf » Wed Dec 10, 2008 5:11 pm

I prepare a website in my localhost, and there's no problem with it. All menus in administration page are in their place nicely. And then, I upload it to a web server, nothing's left behind. But, sadly, I can't see any menu in administration page.

I try to view page source, and there's javascript part. So maybe it's not the problem, but I'm not sure.

Anybody have an idea why it could happen?
Last edited by wedhaaf on Fri Dec 12, 2008 6:15 pm, edited 1 time in total.

New member

Posts

Joined
Mon Oct 27, 2008 3:10 pm

Post by JNeuhoff » Wed Dec 10, 2008 7:05 pm

After you uploaded your files, did you make sure to adjust the config.php files to reflect the server's domain and environment?

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by wedhaaf » Thu Dec 11, 2008 9:06 am

JNeuhoff wrote: After you uploaded your files, did you make sure to adjust the config.php files to reflect the server's domain and environment?
Thanks JNeuhoff,

I don't get what you mean. Does installation process automatically setup anything including server's domain and environment in config.php? I don't know that config.php must be adjusted once more to get this environment. Maybe you can show me an example of config.php that have been adjusted to server's domain and environment.

New member

Posts

Joined
Mon Oct 27, 2008 3:10 pm

Post by Qphoria » Thu Dec 11, 2008 9:28 am

if you are on
Host: localhost
db user: root
db pass: root
db name: mydb

And you move to a site called: www.hotcoffee.com
and your details are :
db user: hotc_admin
db pass: passwd1
db name hotc_oc

then yea you need to change them

But the disappearing admin menu doesn't make sense, as you wouldn't even be able to load the admin page if you didn't have the correct login credentials

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by bruce » Thu Dec 11, 2008 12:41 pm

The menus disappear if there are missing images that they want to use or if there are missing language entries that they require. So these are good places to check.

Try viewing the page html source and look for error messages in the html.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm

Post by wedhaaf » Thu Dec 11, 2008 3:07 pm

Qphoria wrote: But the disappearing admin menu doesn't make sense, as you wouldn't even be able to load the admin page if you didn't have the correct login credentials
Thanks Q.

I use 0.78 version.

I checked config.php according to your suggestion and they're OK.

Recently I found new problem. Instead of showing image of product in thickbox, it opens image in a page.
bruce wrote: The menus disappear if there are missing images that they want to use or if there are missing language entries that they require. So these are good places to check.

Try viewing the page html source and look for error messages in the html.
Thanks Bruce,

If there are missing images, wouldn't it still showing the text? Missing language entries? Do you mean a folder language and files inside it?  It seems that they are OK too.

HTML source looks fine. I compared HTML source from demo.opencart.com with mine.

I found this in mine:

Code: Select all

[color=red]<body onload="if (document.forms[0] && document.forms[0].username) document.forms[0].username.focus()">[/color]
<div id="header"><h1>Administration</h1>
<div class="a">You are logged in as <b>admin</b></div>
but in demo.opencart i can't find that red color row.

Is that a problem? I must check it first.

New member

Posts

Joined
Mon Oct 27, 2008 3:10 pm

Post by wedhaaf » Thu Dec 11, 2008 3:13 pm

wedhaaf wrote:

Code: Select all

[color=red]<body onload="if (document.forms[0] && document.forms[0].username) document.forms[0].username.focus()">[/color]
<div id="header"><h1>Administration</h1>
<div class="a">You are logged in as <b>admin</b></div>
It's nothing wrong with it. I changed this code and nothing happen.

Maybe you'll get a clear explanation from what I posted before.[/img]

Attachments

???
error.gif

New member

Posts

Joined
Mon Oct 27, 2008 3:10 pm

Post by hm2k » Thu Dec 11, 2008 6:24 pm

The problem is no doubt with JSCookMenus.

Use firefox and the webdev toolbar to view the error console or get firebug or something.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Qphoria » Thu Dec 11, 2008 6:48 pm

wedhaaf wrote: Recently I found new problem. Instead of showing image of product in thickbox, it opens image in a page.
Aha. that says it all. You have javascript disabled on your browser. Re-enable it
Last edited by Qphoria on Thu Dec 11, 2008 6:50 pm, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by hm2k » Thu Dec 11, 2008 7:55 pm

Javascript menus suck :(

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Qphoria » Thu Dec 11, 2008 7:56 pm

Amen sister!  ;D

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by wedhaaf » Fri Dec 12, 2008 9:13 am

Qphoria wrote: Aha. that says it all. You have javascript disabled on your browser. Re-enable it
Wait a minute Q  :)

Javascript in my firefox 3.0.4 is never been changed, and it's enabled. Open the admin page using IE 6, resulting the same problem.

New member

Posts

Joined
Mon Oct 27, 2008 3:10 pm

Post by Qphoria » Fri Dec 12, 2008 10:09 am

LIES! maybe the javascript isn't loading? do you have a link we can see?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by wedhaaf » Fri Dec 12, 2008 2:45 pm

Thank you for your willingness to help, Q.

I really appreciate if someone could do a favour.
This is the mainpage link kupuweb.com/ecommerce

I have no intention to lie. I do really need a hand here. Hope you guys, have a solution.

Q, I sent PM to you.

New member

Posts

Joined
Mon Oct 27, 2008 3:10 pm

Post by Qphoria » Fri Dec 12, 2008 4:05 pm

Looks like a permissions thing for the javascript folder:
http://kupuweb.com/ecommerce/admin/java ... ookMenu.js

gives me "Forbidden" on your site. But I can see the text on mysite.

When i changed the permissions of my admin/javascript folder to 700, i got the same problem as you. When I changed back to 755, it was fine.

You might want to change the full level starting at "ecommerce" to set all subdirs to 755
Last edited by Qphoria on Fri Dec 12, 2008 4:10 pm, edited 1 time in total.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by wedhaaf » Fri Dec 12, 2008 4:42 pm

Finally the problem is solved... ;D

All the problem is caused by the file that I copied from 0.79 RC5. I thought this file will give more security to each folder of 0.78 by copying this file to them. Silly  :-[ and bad thing happens.

This file is .htaccess and has script in it like this :

Order Allow,Deny
Deny from all

Deny from all, of course will deny everything that try to reach it.

I deleted it and everything go right.

Thank you Q and you all guys for giving assist.
Thank you Bruce for the advice and analysis.

New member

Posts

Joined
Mon Oct 27, 2008 3:10 pm

Post by hm2k » Fri Dec 12, 2008 6:28 pm

The ".htaccess" file doesn't exist in that directory on RC5.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by wedhaaf » Fri Dec 12, 2008 6:39 pm

Yes, it doesn't exist in directory catalog/javascript, but I still get no image in thickbox even if I remove that file in it.

I traced all the file and found that this file in directory catalog/controller is also cause that problem. I removed that file in the directory, and rightnow, the image would show off in a thickbox.

Remember, I use 0.78. Maybe this version can't handle the .htaccess file, but I'm not sure too.

New member

Posts

Joined
Mon Oct 27, 2008 3:10 pm

Post by Stenrick » Tue Dec 16, 2008 4:42 am

hm2k wrote: The ".htaccess" file doesn't exist in that directory on RC5.
For the record, I did notice that some of the contributions do have an ".htaccess" file in some of the folders. I had the same problem after installing the export-import module, and found the ".htaccess" file in the admin folder of the upload. Like was written above, I simply deleted this file, and solved my problem.

Newbie

Posts

Joined
Tue Sep 16, 2008 12:04 am

Post by Qphoria » Tue Dec 16, 2008 5:00 am

Stenrick wrote: For the record, I did notice that some of the contributions do have an ".htaccess" file in some of the folders. I had the same problem after installing the export-import module, and found the ".htaccess" file in the admin folder of the upload. Like was written above, I simply deleted this file, and solved my problem.
The export-import module's htaccess would have likely given you a "Internal Server Error 500" due to your host not supporting the override of php upload settings

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 4 guests