Open Source Services

Development Services and Products for Open Source e-Commerce Sites

 
Welcome, Guest
Please Login or Register.    Lost Password?

Proforma: no item shown at Index Default spot!
(1 viewing) (1) Guest
Support Forum for free version.
Go to bottomPage: 123
TOPIC: Proforma: no item shown at Index Default spot!
#602
Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Hi everyone,

I'm trying to get Proforma working. I can use the fckeditor in version 0.1.2 osc, but the line
<?php require_once(DIR_WS_FUNCTIONS . 'proforma.php'); doProformaContent('Index Default'); ?>, which should open the item that I've saved in fckeditor just shows nothing! In the source of my page, online, there is no sign of the item at the place in the HTML where it is located.
I've left out every IF/Else that would lead to the spot in the HTML; I've just put this line in my main table of the index.php, so it should have to show up anyhow. Of course this is also the position that was chosen in the fckeditor.

I've reinstalled all files, but still it won't work.
Is there anyone out there who could possibly suggest why my items don't show?

Greeting,

Maarten
mvloon
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2008/09/09 19:41 By mvloon.
The administrator has disabled public write access.
 
#610
Re:Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Hi Maarten

The first thing to do is to check the database and see if the content you entered via FCKeditor has been saved properly or not. If it has, the problem is not with FCKeditor.

Next, ensure that URL substring has been set to correspond with the page in which you want the content to appear.

If you have checked both these things and there is still a problem, let me know and I'll investigate further.

Nick
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#611
Re:Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Dear Hanuman (Nick),

Thanks a lot for your reply.
I did check the database already and the item is indeed in the pf_content.

Reading the manual I did conclude that I only had to type the name of the file; indexW.php. Because that is where the line <?php require_once(DIR_WS_FUNCTIONS . 'proforma.php'; doProformaContent('Index Default'; ?> is placed in a table. I mean without the root or some directory.
If this is the correct substring I cannot explain why the item isn't showing.

I hope that I didn't interpretate the substring right; then that could be the solution!

Regards,

Maarten
mvloon
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#612
Re:Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Hi Maarten

If the URL of the page which is to show your content cntains 'index.php' in it, then you are using the URL Substring setting correctly.

I can check your system for you if you like. If you send me your FTP details and the URL of the page where your content item should appear, I will try to iron out the problem over the next 24 hours.

Send your details via the support email address or the contact form you can find on this site.

Also, a screenshot of your Proforma admin page with the settings for this content unit could also be helpful.

Another thing to check:

- The 'DIR_WS_FUNCTIONS' constant in the catalog/includes/configure.php file is set correctly. You could try changing this using the other constants to produce a full filepath from the server root to the functions/proforma.php file.

Cheers

Nick
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#613
Re:Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Hi Nick,

I've tried the full filepath instead of the DIR_WS_FUNCTIONS; luckily the php gives an error when the path isn't correct so it finally ended up in the same result as I had with the DIR_WS_FUNCTIONS, which is null. The place in the HTML is just left out.

I'll try to collect the info for you and will send it then.
Thanks very much so far; I really appreciate this!

Regards,

Maarten
mvloon
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#621
Re:Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Hi Nick,

Where you able yet to find anything that causes the error?

My body:

<!-- body_text //-->
<td width="100%" valign="top" colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><!--?php echo HEADING_TITLE; ?//--></td>
<td class="pageHeading" align="right"><!--?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?//--></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="main"><!--?php echo tep_customer_greeting(); ?//--></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td align="center" class="main"><?php require_once('includes/functions/proforma.php'); doProformaContent('Index Default'); ?></td>
</tr>
<tr>
<td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td>
</tr>
<tr>
<td><?//php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->
<td width="1" valign="top"><table border="0" width="1" cellspacing="0" cellpadding="0" height="476" align="left">
<?php echo tep_image(DIR_WS_IMAGES . 'VertLijn.gif'); ?>
</table>
</td>
<td width="<?php echo BOX_WIDTH; ?>" valign="top" rowspan="5" height="100%"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->


Greetings,

Maarten
mvloon
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2008/09/14 19:33 By mvloon.
The administrator has disabled public write access.
 
#622
Re:Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Hi, sorry for the long delay in replying.

Try this:

1) Open up 'catalog/includes/functions/proforma.php'. Within the function: doProformaContent($pf_pos), comment out this line:

Code:

$content = filterContent($content);


Then check if your content is showing in the storefront. If it is, then the system is reading the database okay, but there is a problem with the way it is identifying the page as the one which should display the content.

Let me know how it goes.

Nick
hanuman
Moderator
Posts: 371
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#623
Re:Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Hi Nick,

Thanks for the suggestion; I've done so, but the item still (as you can see yourselves) won't show.
Did you check my scripts and are they furthermore ok?

Now, what to do?

Regards,

Maarten
mvloon
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#624
Re:Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Is it perhaps a problem that osCommerce always is located in /catalog/ while I've put it in /knits/ (because the subject is knitted items)? Despite of the filepath that I've tried to take care of?
mvloon
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#625
Re:Proforma: no item shown at Index Default spot! 3 Years, 4 Months ago  
Hi Nick,

I hope that you will read this soon.
I was thinking, at line 10 of includes/functions/proforma.php there is this code:
Code:

function doProformaContent($pf_pos){


Does this perhaps mean that there's supposed to be a field called pf_pos in the database tables pf_content or pf_positions?
I ask this, because this field is in neither of the two tables!

Is this causing the error?

Greetings,

Maarten
mvloon
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2008/09/16 15:44 By mvloon.
The administrator has disabled public write access.
 
Go to topPage: 123