Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading from 1.3.x to 1.3.9 / Access Denied to Log in or add products to cart

Access Denied to Log in or add products to cart

Locked

Started by lunarenchantments on 21 May 2010, 5:20 PM · Views: 1,783

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
21 May 2010, 5:20 PM
#1
lunarenchantments avatar

lunarenchantments

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Post #1 by lunarenchantments

I just upgraded to from 1.3.8 to 1.3.9C. Now I find that I can't log in or add products to the cart - a new window appears "Access Denied". I created a new customer to check it again and still I get the "Access Denied" message when I log in or add to cart. Couldn't find anything about this in the forums or FAQ, any ideas?

Janie:cry:

22 May 2010, 8:27 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

Is it a blank window saying just "Access Denied"?
Or is it a message across the top of the screen saying "Error: Access Denied."
Is your server's Apache error_log reporting any messages when the error is displayed?

It sounds quite a lot like the message is coming from your apache server and not from Zen Cart.
More exact very specific details will help narrow it down.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 May 2010, 3:16 PM
#3
lunarenchantments avatar

lunarenchantments

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Post #3 by lunarenchantments

Thanks for responding. It is a blank window that pops up with only the words "Access Denied" This is the url http://lunarenchantments.com/index.php?main_page=product_info&cPath=20&products_id=12&action=add_product

Below are the error logs. What do you think?

[Sat May 22 11:05:29 2010] [error] [client 98.231.91.191] client denied by server configuration: /home/lunare5/public_html/includes/templates/lunare/images/, referer: http://lunarenchantments.com/index.php?main_page=
[Sat May 22 11:04:57 2010] [error] [client 98.231.91.191] File does not exist: /home/lunare5/public_html/404.shtml
[Sat May 22 11:04:57 2010] [error] [client 98.231.91.191] File does not exist: /home/lunare5/public_html/favicon.ico

22 May 2010, 3:30 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

All those "client denied by server configuration" messages are coming from your template which has a broken image on it: ```
<img src="includes/templates/lunare/images/" alt="" />


And the complaints about favicon.ico are a result of you not having such a file on your server.

And all the 403.shtml messages are a direct result of all the other messages triggering problems. 


But none of that is related to any add-to-cart issues.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 May 2010, 4:01 PM
#5
lunarenchantments avatar

lunarenchantments

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Post #5 by lunarenchantments

So what do you think? I read in the Bug Forum that reinstalling zen helped in at least one instance. But the issue was dropped by the person who had exactly this problem. Would reinstalling override the override file?

22 May 2010, 4:05 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

Well, there are a few things to consider:

a) a clean install of v1.3.9c works just fine on all the various servers that I use. We don't know about your server though. You would have to do a clean install (into another folder+database) to know.
b) maybe you broke or missed something in your upgrade

How exactly did you do your upgrade?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 May 2010, 4:29 PM
#7
lunarenchantments avatar

lunarenchantments

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Post #7 by lunarenchantments

I didn't do the upgrade personally, but I'm comfortable that the person who did knows her stuff. Perhaps there was glitch when she installed the upgrade. I'm trying to learn to do these things for myself, but it really helps to have folks like you and her to answer my questions.

So you think that a fresh install would be the best answer? Does that mean that I'd have to repopulate my database or could I just copy it over? And also the files I've changed like the one that I altered to rename page 2 (for example)?

I appreciate your efforts to help me:smile:

22 May 2010, 4:49 PM
#8
lunarenchantments avatar

lunarenchantments

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Post #8 by lunarenchantments

I did some poking around in the files and not sure, but could the fatal error below be the problem?

text/x-log zcInstallLog_May-20-2010_05.log
ASCII text, with very long lines


May 20 2010 17:18 -- inspect
FATAL: store configure.php is not writeable


May 20 2010 17:18 -- inspect
System Inspection Results:

NA: Webserver => Apache
NA: HTTP Host => lunarenchantments.com
NA: Path_Translated => /home/lunare5/public_html/zc_install/index.php(SCRIPT_FILENAME)
NA: Real Path => /home/lunare5/public_html
NA: Server Free Disk Space => 155.59 GB
NA: PHP O/S => Linux
NA: PHP API Mode => cgi
NA: PHP Max Execution Time per page => 30
OK: Register Globals => OFF
OK: MySQL Support => ON
OK: MySQL Version => 5.0.89-community-log
OK: PHP Version => 5.2.11
OK: PHP Safe Mode => OFF
OK: PHP Sessions Support => ON
OK: PHP Session.AutoStart => OFF
OK: PHP session.use_trans_sid => OFF
OK: Current SQL Cache Folder => /home/lunare5/public_html/cache-->Writeable
OK: Suggested SQL Cache Folder => /home/lunare5/public_html/cache
OK: PHP magic_quotes_runtime setting => OFF
OK: PHP magic_quotes_sybase setting => OFF
OK: PHP GD Support => ON
OK: GD Version => GD bundled (2.0.34 compatible)
OK: PHP ZLIB Compression Support => ON
OK: PHP OpenSSL Support => ON
OK: PHP cURL Support => ON
OK: CURL NON-SSL Capability => Okay
OK: CURL SSL Capability => Okay
OK: PHP Upload Support => ON upload_max_filesize=128M; post_max_size=128M
OK: PHP Upload TMP dir =>
NA: PHP include_path => .:/usr/lib/php:/usr/local/lib/php:/home/lunare5/php
NA: PHP SMTP destination => localhost
NA: PHP sendmail path => /usr/sbin/sendmail -t -i
NA: PHP sendmail 'from' =>
OK: PHP open_basedir restrictions =>
WARN: PHP Output Buffering (gzip) => OFF
OK: PHP FTP Support => ON
OK: PHP XML Support => ON
OK: PHP Session.Save_Path => /home/lunare5/public_html/cache-->Writeable
FAIL: includes/configure.php => <span class='errors'>Unwriteable</span>
OK: admin/includes/configure.php => Writeable
OK: cache => OK 777 read/write/execute
OK: images => OK 777 read/write/execute (INCLUDE SUBDIRECTORIES TOO)
OK: includes/languages/english/html_includes => OK 777 read/write (INCLUDE SUBDIRECTORIES TOO)
OK: media => OK 777 read/write/execute
OK: pub => OK 777 read/write/execute
OK: admin/backups => OK 777 read/write
OK: admin/images/graphs => OK 777 read/write/execute
PHP Extensions compiled: date, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, curl, dbase, dom, hash, filter, ftp, gd, gettext, session, iconv, standard, json, mbstring, mcrypt, mhash, mime_magic, mysql, SimpleXML, posix, pspell, Reflection, imap, SPL, mysqli, soap, sockets, exif, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi, homeloader, PDO, pdo_sqlite, SQLite, pdo_mysql, htscanner, ionCube Loader, Zend Optimizer


May 20 2010 17:18 -- inspect
System Inspection Results:

NA: Webserver => Apache
NA: HTTP Host => lunarenchantments.com
NA: Path_Translated => /home/lunare5/public_html/zc_install/index.php(SCRIPT_FILENAME)
NA: Real Path => /home/lunare5/public_html
NA: Server Free Disk Space => 155.6 GB
NA: PHP O/S => Linux
NA: PHP API Mode => cgi
NA: PHP Max Execution Time per page => 30
OK: Register Globals => OFF
OK: MySQL Support => ON
OK: MySQL Version => 5.0.89-community-log
OK: PHP Version => 5.2.11
OK: PHP Safe Mode => OFF
OK: PHP Sessions Support => ON
OK: PHP Session.AutoStart => OFF
OK: PHP session.use_trans_sid => OFF
OK: Current SQL Cache Folder => /home/lunare5/public_html/cache-->Writeable
OK: Suggested SQL Cache Folder => /home/lunare5/public_html/cache
OK: PHP magic_quotes_runtime setting => OFF
OK: PHP magic_quotes_sybase setting => OFF
OK: PHP GD Support => ON
OK: GD Version => GD bundled (2.0.34 compatible)
OK: PHP ZLIB Compression Support => ON
OK: PHP OpenSSL Support => ON
OK: PHP cURL Support => ON
OK: CURL NON-SSL Capability => Okay
OK: CURL SSL Capability => Okay
OK: PHP Upload Support => ON upload_max_filesize=128M; post_max_size=128M
OK: PHP Upload TMP dir =>
NA: PHP include_path => .:/usr/lib/php:/usr/local/lib/php:/home/lunare5/php
NA: PHP SMTP destination => localhost
NA: PHP sendmail path => /usr/sbin/sendmail -t -i
NA: PHP sendmail 'from' =>
OK: PHP open_basedir restrictions =>
WARN: PHP Output Buffering (gzip) => OFF
OK: PHP FTP Support => ON
OK: PHP XML Support => ON
OK: PHP Session.Save_Path => /home/lunare5/public_html/cache-->Writeable
OK: includes/configure.php => Writeable
OK: admin/includes/configure.php => Writeable
OK: cache => OK 777 read/write/execute
OK: images => OK 777 read/write/execute (INCLUDE SUBDIRECTORIES TOO)
OK: includes/languages/english/html_includes => OK 777 read/write (INCLUDE SUBDIRECTORIES TOO)
OK: media => OK 777 read/write/execute
OK: pub => OK 777 read/write/execute
OK: admin/backups => OK 777 read/write
OK: admin/images/graphs => OK 777 read/write/execute
PHP Extensions compiled: date, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, curl, dbase, dom, hash, filter, ftp, gd, gettext, session, iconv, standard, json, mbstring, mcrypt, mhash, mime_magic, mysql, SimpleXML, posix, pspell, Reflection, imap, SPL, mysqli, soap, sockets, exif, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi, homeloader, PDO, pdo_sqlite, SQLite, pdo_mysql, htscanner, ionCube Loader, Zend Optimizer

22 May 2010, 6:27 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #9 by drbyte

lunarenchantments:

I did some poking around in the files and not sure, but could the fatal error below be the problem?
No, all that information was from install-time. After install that information is irrelevant.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 May 2010, 6:33 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #10 by drbyte

lunarenchantments:

So you think that a fresh install would be the best answer? Does that mean that I'd have to repopulate my database or could I just copy it over? And also the files I've changed like the one that I altered to rename page 2 (for example)?
I'm suggesting creating a new store, WITHOUT any of your existing data or addons or customizations or templates. Create a new product or two, and test all these things in that store.

Then, when it works properly, you'll have confirmation that the software does work on your server. Then you and your developer can work together to progressively make the new store more and more like your live store, testing things step by step until the functionality breaks again. And then you'll know where to work on fixing it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 May 2010, 6:47 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #11 by drbyte

Hmmm ... something else to try too:

  • Go to Admin->Tools->Developers Toolkit
  • in the last (bottom) search box type in Access Denied and then choose All Files from the pulldown and click the Search button to the right of it
  • report back what it finds

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 May 2010, 7:28 PM
#12
lunarenchantments avatar

lunarenchantments

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Post #12 by lunarenchantments

Thanks again for your help

22 May 2010, 7:45 PM
#13
lunarenchantments avatar

lunarenchantments

New Zenner

Join Date:
May 2010
Posts:
7
Plugin Contributions:
0

Post #13 by lunarenchantments

:clap: Yeah! You did it! Thank you. I deleted the code from /home/lunare5/public_html/includes/extra_cart_actions/.wysiwygPro_preview_eacf331f0ffc35d4b482f1d15a887d3b.php file and it fixed BOTH problems!!!