close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PS3 Page Not Appearing

Thread began 12/12/2010 2:24 pm by jed193733 | Last modified 12/20/2010 2:16 pm by Jason Byrnes | 1626 views | 10 replies |

jed193733

PS3 Page Not Appearing

I'm trying to call a new page (Cigars_Results.php) from the left column1 Accordian menu (Collections/Cigar Art). When I choose this menu option all I get is a blank page for (PostCards_Results.php). Both of these pages are copies of the Products_Results.php with primary changes to the main content section.

The Cigars_Results.php page is Products_Results.php page with a PowerGallery in the main content section and the Accordian menu removed. You can access this page correctly from the menu bar under the "Start Here"/Collections/Cigar Art menu.

I know the addition of the page to the categories table is a change, but I know this works as I am able to change the page name and the other pages work. It seems to be a conflict with something in the PowerGallery code.

Here's the Accordian code that comes from the template AND I have only changed to add the new Category_Page, which has worked with other pages just fine.

<div id="leftColumn1">
<?php
if (!function_exists("getCatAccordian")) {
function getCatAccordian($StartWith=0,$prevLevels=0) {
$retHTML = "";
$retScript = "";
mysql_select_db($GLOBALS['database_PowerStoreConnection'], $GLOBALS['PowerStoreConnection']);
$query_SubCategoryList = "SELECT * FROM ps3_categories WHERE CategoryParent = ".$StartWith . " ORDER BY CategoryName";
$SubCategoryList = mysql_query($query_SubCategoryList, $GLOBALS['PowerStoreConnection']) or die(mysql_error());
$totalRows_SubCategoryList = mysql_num_rows($SubCategoryList);
$row_SubCategoryList = mysql_fetch_assoc($SubCategoryList);
$spaceStr = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
if ($row_SubCategoryList) {
$retHTML .= '<div id="Accordion'.$row_SubCategoryList["CategoryID"].'" class="Accordion" tabindex="0">' . "\n";
$retScript .= 'var Accordion'.$row_SubCategoryList["CategoryID"].' = new Spry.Widget.Accordion("Accordion'.$row_SubCategoryList["CategoryID"].'", { useFixedPanelHeights: false, defaultPanel: -1 });' . "\n";

while ($row_SubCategoryList) {
$suboptions = getCatAccordian($row_SubCategoryList["CategoryID"],(1 + $prevLevels));
$retScript .= $suboptions[1];
$retHTML .= ' <div class="AccordionPanel" >' . "\n";
$retHTML .= ' <div class="AccordionPanelTab" onclick="doHighlighlight(this);updateContant(\''.$row_SubCategoryList["CategoryPage"].'?Search=1&ProductCategoryID[]='.$row_SubCategoryList["CategoryID"].'\')">'.(($prevLevels>0)?substr($spaceStr,0,12*$prevLevels):'') .$row_SubCategoryList["CategoryName"].'</div>' . "\n";
if ($suboptions[0]!="") {
$retHTML .= ' <div class="AccordionPanelContent" >' . "\n";
$retHTML .= $suboptions[0];
$retHTML .= ' </div>' . "\n";
}
$retHTML .= ' </div>' . "\n";
$row_SubCategoryList = mysql_fetch_assoc($SubCategoryList);
}

$retHTML .= '</div>' . "\n";
}
return array($retHTML,$retScript,$totalRows_SubCategoryList);
}
}
?>
<?php
$Accordian = getCatAccordian();

echo($Accordian[0]);
?>

I know the page names are changed, but the overall functions of the PowerStore still power this site. I'm looking for some suggestion as to why the addition of a new category would just not load. It does work correctly off the menu bar. ANY insight is appreciated....

PostCards_Results.php?Search=1&ProductCategoryID[]=13

Thanks...

Sign in to reply to this post

Jason ByrnesWebAssist

when a page displays blank it means a php error has occurred, but error logging is turned off.


add the following code at line 1 of the page to turn error reporting on:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

Jim E D

Didn't display errors...

I placed it on these pages (Cigars_Results.php, PostCards_Results.php, /pg/galleries/ribbon_fullsize/index.php) and I got no errors.

I know it's working because when I call the gallery directly I get an error on line 7 looking for the gallery_id. Additional thoughts?

Sign in to reply to this post

Jason ByrnesWebAssist

when i try your link, i see the following error:

Warning: implode() [function.implode]: Invalid arguments passed in /home/jdekeyre/public_html/keywesthistoricmarkertour.org/PostCards_Results.php on line 84
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')) GROUP BY GroupingID ORDER BY ProductPrice LIMIT 0, 10' at line 1


send me a copy of the PostCards_Results.php page in a zip archive so i can look at the code.

Sign in to reply to this post

Jim E D

Zips and Questions...

Here's the zip of the files I think are in problem.

What are you using for a browser that your seeing this error? I'm still not seeing it in Google Chrome or Safari.

THANKS

Attached Files
index.zip
Sign in to reply to this post

Jason ByrnesWebAssist

sorry, the error i was seeing was a red herring caused because the link i was following did not pass the id value:
www.keywesthistoricmarkertour...ductCategoryID


the code that generates the left menu is in the CSSMenuWriter/intermediate.php page.

this is the page that generates all of the links, i dont think the code you where editing is the right place to make the change you are trying to make.

Sign in to reply to this post

Jim E D

Thanks...

THANKS Jason, I see what you're referring to and will look at that section of code. Where is the intermediate.php called from? A Dreamweaver search doesn't show specific files where this intermediate.php is coming from.

Sign in to reply to this post

Jason ByrnesWebAssist

it is called in the template.

Sign in to reply to this post

Jim E D

intermediate.php affecting nothing...

Hi Jason,

Ok I'm a little confused and having some trouble finding the call to intermediate.php. Here's what I did:

1. Walked line by line in the main.dwt file - found nothing
2. Did a DW search and found no files calling intermediate.php
3. changed the file anyways to read my CategoryPage field instead of Products - nothing changed
4. Deleted intermediate.php - no errors site still works

Change mode and started back at square one looking at how the powerGallery page is called from the powerstore...
1. changed the database to call another page - it works; tried a few different pages, they all work fine.
2. Walking line by line in the (Products)Cigars_Results.php file.... appreciate anyone else looking at the file and sharing insight...

Thanks in advance...

Sign in to reply to this post

Jim E D

No more suggestions?

No more suggestions?

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...