marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation

YOU ARE HERE:
<[sidebar]> doesn't display

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « <[sidebar]> doesn't display »
Welcome, Guest. Please Login or Register.
12/14/17 at 22:55:46
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   <[sidebar]> doesn't display
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: <[sidebar]> doesn't display  (Read 971 times)
Sue_D
Green Dragon
*

Posts: 8



Go Scots!
   

<[sidebar]> doesn't display
« on: 11/16/06 at 18:58:36 »
Reply with quote Modify message

Newbie here with a sidebar problem.

First, thank you, Marty, for a great script at a great price!

I'm almost ready to go live with cpshop except for one nagging problem: <[sidebar]> has stopped displaying:

http://www.petspictured.com/cgi-bin/cpstore/cpshop.cgi

All last night when I was customizing cptemplate.html, it worked just fine, including the collapsing menus. Now, for some reason, the sidebar doesn't display at all. Thinking I broke it while working on the template, I went back to the original cptemplate.html and it has the same problem.   I also noticed it is taking much longer to display the page than it did before the sidebar broke. Related issue?

Here is a copy of the cptemplate.html as i've modified it (naturally, it lives in /cgi-bin/cpstore/, but that's a forbidden directory, so i copied it outside so you all could see it):

http://www.petspictured.com/cptemplate.html

FYI, this is a single premium CP shop, id=dogspictured

Thanks in advance for any help you all can provide,

Sue
PetsPictured.com
« Last Edit: 11/16/06 at 20:29:29 by Sue_D » Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: <[sidebar]> doesn't display
« Reply #1 on: 11/17/06 at 02:00:10 »
Reply with quote Modify message

I have a feeling there's something wrong with your cpcache folder.  I don't know if the size is too low (I doubt that), or there's a permissions issue or something, but it's strange that cpshop is going to CafePress to load on every pageview.

Do you have anything in your cpcache directory?
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Sue_D
Green Dragon
*

Posts: 8



Go Scots!
   

Re: <[sidebar]> doesn't display
« Reply #2 on: 11/17/06 at 07:07:51 »
Reply with quote Modify message

Marty:

I think you may be right, since there are only a couple small files in cpcache:

cpshop.cgi.dynastores (1k)
cpshop.cgi_731267992.data (21k)
version.check (1k)

Can I force it to rebuild the cache by deleting those files?

Thanks!
Sue
Logged
Sue_D
Green Dragon
*

Posts: 8



Go Scots!
   

Re: <[sidebar]> doesn't display
« Reply #3 on: 11/17/06 at 07:45:21 »
Reply with quote Modify message

Since I wrote that last post, I did the following, still without results:

1. Reset permissions on all the scripts and directories as instructed in the installation guide.

2. Deleted (after backing up) the files in cpcache. Store came up 404, so I restored the files. (Noticed that all the cache files are dated Yesterday (11/16/06) at 9:52 am -- they obviously aren't being written to, seemingly confirming your permissions theory, but resetting permissions didn't heal it)

3. Used the Admin panel to empty the caches and reset their sizes. Those stubborn files are still there, dated yesterday and the sidebar still doesn't display.

Hope you can suggest something else to try!

Sue
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: <[sidebar]> doesn't display
« Reply #4 on: 11/17/06 at 08:58:23 »
Reply with quote Modify message

The sidebar still isn't coming up, but the pages appear to be responding without going to the CP servers every time.  What have you changed?
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Sue_D
Green Dragon
*

Posts: 8



Go Scots!
   

Re: <[sidebar]> doesn't display
« Reply #5 on: 11/17/06 at 09:08:04 »
Reply with quote Modify message

Hmmm...  I'm not seeing any difference in load time -- it still is taking quite a while to load the images for me.

But, besides what I mentioned above (not really changes, but confirmations of permissions, I guess), I set the cpcache and cpoutput cache sizes to 50 and 100 respectively. They had been at their defaults before, IIRC.

Sue
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: <[sidebar]> doesn't display
« Reply #6 on: 11/17/06 at 09:18:44 »
Reply with quote Modify message

Can you try disabling the cpoutput cache?  (This is usually done by renaming it to something else, like "cpoutput2".)
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Sue_D
Green Dragon
*

Posts: 8



Go Scots!
   

Re: <[sidebar]> doesn't display
« Reply #7 on: 11/17/06 at 09:23:48 »
Reply with quote Modify message

OK, I did that. Still no sidebar, but the rest of the page is loading very fast w/o going out to CP, so something is caching!
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: <[sidebar]> doesn't display
« Reply #8 on: 11/17/06 at 09:28:25 »
Reply with quote Modify message

Are you seeing files in the cpcache directory now?
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Sue_D
Green Dragon
*

Posts: 8



Go Scots!
   

Re: <[sidebar]> doesn't display
« Reply #9 on: 11/17/06 at 09:34:13 »
Reply with quote Modify message

YES!

One .txt
three .data
one .safe
one .check
one . dynastores

Dates and file sizes change appropriately, too.

What the heck is up with that sidebar, I wonder?

Sue
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: <[sidebar]> doesn't display
« Reply #10 on: 11/17/06 at 10:13:24 »
Reply with quote Modify message

I just checked your HTML -- the sidebar is displaying, but it's empty.

Do you have your store ID entry marked as "this entry should not appear in the sidebar or on the default homepage"?
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Sue_D
Green Dragon
*

Posts: 8



Go Scots!
   

Re: <[sidebar]> doesn't display
« Reply #11 on: 11/17/06 at 10:46:18 »
Reply with quote Modify message

No, those boxes are unchecked, but i may  not have that section filled out correctly, because I wasn't sure I needed to with a single premium store. Here's how I've set up that section:

Dummy Store ID: dogspictured      
Wildcard Store IDs:
Show Wildcard Store ID fields.
*1 or *      =      dogspictured  Description: [empty]

Store ID:      dogspictured
Name:            Miscellaneous Stuff 1 [the default value]
Caption:      [empty]
Alias:      [empty]
Keywords:      [empty]
Description:      [empty]
Thumbnail:      [empty]
Sidebar:      [unchecked ] this entry should not appear in the sidebar or on the default homepage

No other wildcard fields are filled in.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: <[sidebar]> doesn't display
« Reply #12 on: 11/17/06 at 10:49:15 »
Reply with quote Modify message

1. Go into your cpcache folder, and delete the file that ends in ".dynastores".

2. In the alias box for your store ID entry, enter "dogspictured" (without the quotes).

3. Try your store again.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Sue_D
Green Dragon
*

Posts: 8



Go Scots!
   

Re: <[sidebar]> doesn't display
« Reply #13 on: 11/17/06 at 11:04:58 »
Reply with quote Modify message

YESSS!!!! Sucess!

Thank you, Marty, for sticking with it till we got a fix!

I take it then, then that even with one store, the first wildcard has to be filled? At least store id and alias, apparently?

Thanks a bunch!
Sue
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: <[sidebar]> doesn't display
« Reply #14 on: 11/17/06 at 11:13:19 »
Reply with quote Modify message

Not exactly, though it's a good idea to always setup an alias for every store ID entry.  (I think you're mixing up wildcards and store ID entries a bit, too.)

You happened to have dynamic direct linking enabled, and referenced your store as if there was an alias setup already.  cpshop didn't see the alias, so it created one, and put it in the dynastores file, marked as hidden.  But because it was the same thing as your only store entry, it overwrote your current store.

Confusing, sure.  Make sure you use an alias, and it won't happen again.
Logged

--
Regards,
Marty·.¸¸.·´¯`·.¸¸.-> marty@marty.net
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright © 2000-2001, X-Null. All Rights Reserved.