1
technobia
mX-Directory Error
  • 2007/3/19 23:56

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Xoops 2.0.16 / Mx-Directory 3.1 / Php 5.1.6 / MySQL 4.1

Parse error: parse error, unexpected ';' in C:\Inetpub\sisson\www\templates_c\Sisson-sisson^%%4B^4B3^4B3E9984%%db%3Axdir_index.html.php on line 3

I have this same error on 2 of 3 XOOPS installations usin mX-Directory. All sites are hosted on the same server. I have no clue what is causing this error or why I do not have it on one of the sites.
Thanks, Technobia
http://www.PrideDEPOT.com
Everybody Has A Right!

2
JMorris
Re: mX-Directory Error
  • 2007/3/20 0:16

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Off hand, I don't have a direct answer, but if you can post the content of that file and the mx-directory index template file, I bet we can figure it out.
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

3
technobia
Re: mX-Directory Error
  • 2007/3/20 0:33

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


That would be greatly appreciated. How do you suggest I do that they are both kinda long. I am not sure how to post the code so it is not interpreted.
Thanks, Technobia
http://www.PrideDEPOT.com
Everybody Has A Right!

4
JMorris
Re: mX-Directory Error
  • 2007/3/20 0:38

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Post the code inside [code ][/code ] BBCode tags. Take out the space before ].

HTH.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

5
technobia
Re: mX-Directory Error
  • 2007/3/20 0:46

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Thanks James.

Here is the Template_c file:

/* Smarty version 2.6.13, created on 2007-03-19 13:14:41
         compiled from db:xdir_index.html */ 
?>
echo ; ?>
echo $this->_tpl_vars['xoops_module_header']; ?>


  
    echo @_MD_DIRHEADER?>

    
    if ($this->_tpl_vars['usesearch'] != '0'): ?>
            
            echo $this->_tpl_vars['xoops_url']; ?>
/search.php' method='post' onsubmit='return xoopsFormValidate_search();'>
              echo $this->_tpl_vars['xmid']; ?>
' />
                
                    
                    echo @_MD_ALLWORDS?>

                    echo @_MD_ANYWORDS?>

                    echo @_MD_EXACTMATCH?>

                
                    echo @_MD_SEARCH?>
' />
              
            

      endif; ?>
    
    
echo $this->_tpl_vars['xoops_url']; ?>
/modules/echo $this->_tpl_vars['smartydir']; ?>
/savings.php?cid=echo $this->_tpl_vars['category_id']; ?>
">echo @_MD_SAVINGS?>

    
echo $this->_tpl_vars['xoops_url']; ?>
/modules/echo $this->_tpl_vars['smartydir']; ?>
/submit.php">echo @_MD_SUBMITLINK?>

  
  if ($this->_tpl_vars['usealpha'] != '0'): ?>
  
    echo @_MD_SEARCHFOR?>
echo $this->_tpl_vars['letters']; ?>

    
  
  endif; ?>







  
  $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from'array'); }$this->_foreach['tlcat'] = array('total' => count($_from), 'iteration' => 0);
if (
$this->_foreach['tlcat']['total'] > 0):
    foreach (
$_from as $this->_tpl_vars['category']):
        
$this->_foreach['tlcat']['iteration']++;
 if ((
$this->_foreach['tlcat']['iteration'] <= 1)): ?>

      
    endif; ?>
        
        if ($this->_tpl_vars['category']['image'] != ""): ?>
          echo $this->_tpl_vars['xoops_url']; ?>
/modules/echo $this->_tpl_vars['smartydir']; ?>
/viewcat.php?cid=echo $this->_tpl_vars['category']['id']; ?>
">echo $this->_tpl_vars['category']['image']; ?>
" alt="" height="50" border="0" class="c_img_display" />
        endif; ?>        
        echo $this->_tpl_vars['xoops_url']; ?>
/modules/echo $this->_tpl_vars['smartydir']; ?>
/viewcat.php?cid=echo $this->_tpl_vars['category']['id']; ?>
" class="c_title">echo $this->_tpl_vars['category']['title']; ?>
 
          (echo $this->_tpl_vars['category']['totallink']; ?>
)
        echo $this->_tpl_vars['category']['subcategories']; ?>
 
    if (!($this->_tpl_vars['category']['count'] % 3)): ?>      
        endif; ?>
    if (($this->_foreach['tlcat']['iteration'] == $this->_foreach['tlcat']['total'])): ?>
      

    
    echo $this->_tpl_vars['lang_thereare']; ?>

    
    endif; ?>        
  endforeach; endif; unset($_from); ?>
  

if ($this->_tpl_vars['links'] != ""): ?>
  echo $this->_tpl_vars['lang_latestlistings']; ?>

  
    
      
      unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['category']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > $this->_sections['i']['loop']-1;
if (
$this->_sections['i']['show']) {
    
$this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if (
$this->_sections['i']['total'] == 0)
        
$this->_sections['i']['show'] = false;
} else
    
$this->_sections['i']['total'] = 0;
if (
$this->_sections['i']['show']):

            for (
$this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 
$this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 
$this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
        echo $this->_tpl_vars['link']['category']; ?>

        unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['links']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > $this->_sections['i']['loop']-1;
if (
$this->_sections['i']['show']) {
    
$this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if (
$this->_sections['i']['total'] == 0)
        
$this->_sections['i']['show'] = false;
} else
    
$this->_sections['i']['total'] = 0;
if (
$this->_sections['i']['show']):

            for (
$this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 
$this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 
$this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
          $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "db:xdir_link.html"'smarty_include_vars' => array('link' => $this->_tpl_vars['links'][$this->_sections['i']['index']])));
$this->_tpl_vars $_smarty_tpl_vars;
unset(
$_smarty_tpl_vars);
 
?>
        endfor; endif; ?>
      endfor; endif; ?>
      
    

endif; ?>
$this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'db:system_notification_select.html''smarty_include_vars' => array()));
$this->_tpl_vars $_smarty_tpl_vars;
unset(
$_smarty_tpl_vars);
 
?>


Here is the xdir_index.html file:
<{$xoops_module_header}>
<
table width="888" border="0" align="center" cellpadding="0" cellspacing="0" class="c_search">
  <
tr>
    <
td class="c_search_l"><{$smarty.const._MD_DIRHEADER}>td>
    <
td class="c_search_table">
    <{if 
$usesearch != "0"}>
            
            <
form name='search' id='search' action='<{$xoops_url}>/search.php' method='post' onsubmit='return xoopsFormValidate_search();'>
              <
input type='hidden' name='mids[]' value='<{$xmid}>' />
                <
input name='query' type='text' class="c_search_input" id='query' value='' size='20' maxlength='255' />
                    <
select name='andor'  size='1' class="c_search_select" id='andor'>
                    <
option value='AND' selected='selected'><{$smarty.const._MD_ALLWORDS}>option>
                    <
option value='OR'><{$smarty.const._MD_ANYWORDS}>option>
                    <
option value='exact'><{$smarty.const._MD_EXACTMATCH}>option>
                select>
                    <
input type='submit' class='c_searchbutton' name='submit'  id='submit' value='<{$smarty.const._MD_SEARCH}>' />
              <
input type='hidden' name='action' id='action' value='results' />
            form>

      <{/if}>
    td>
    <
td class="c_search_r"><div><a href="<{$xoops_url}>/modules/<{$smartydir}>/savings.php?cid=<{$category_id}>"><{$smarty.const._MD_SAVINGS}>a>div>
    <
div><a href="<{$xoops_url}>/modules/<{$smartydir}>/submit.php"><{$smarty.const._MD_SUBMITLINK}>a>div>td>
  tr>
  <{if 
$usealpha != "0"}>
  <
tr align="center">
    <
td colspan="3" class="c_select_letters"><{$smarty.const._MD_SEARCHFOR}>:&nbsp;<{$letters}>
    td>
  tr>
  <{/if }>
table>
<
hr />

<
script type='text/javascript'>

script>

  
  <{foreach 
name=tlcat item=category from=$categories}><{if $smarty.foreach.tlcat.first}>
<
table cellspacing='5' style="border-style: none; padding: 0px; text-align: left;">
      <
tr>
    <{/if}>
        <
td valign="top">
        <{if 
$category.image != ""}>
          <
a href="<{$xoops_url}>/modules/<{$smartydir}>/viewcat.php?cid=<{$category.id}>"><img src="<{$category.image}>" alt="" height="50" border="0" class="c_img_display" />a>
        <{/if}>        td>
        <
td valign="top" width="33%"><span class="index_category_title"><a href="<{$xoops_url}>/modules/<{$smartydir}>/viewcat.php?cid=<{$category.id}>" class="c_title"><{$category.title}>a>&nbsp;span>          <span class="index_subcats">(<{$category.totallink}>)<br />
        <{
$category.subcategories}>spantd>
    <{if 
$category.count is div by 3}>      tr><tr>
        <{/if}>
    <{if 
$smarty.foreach.tlcat.last}>
      tr>
table>
    <
br /><br />
    <
div class="c_desc"><{$lang_thereare}>div>
    <
hr /><br />
    <{/if}>        
  <{/foreach}>
  

<{if 
$links != ""}>
  <
h4 class="c_title"><{$lang_latestlistings}>h4>
  <
table width="100%" class="index_category_links_display">
    <
tr><td width="100%" align="center" valign="top">
      
      <{
section name=i loop=$category}>
        <{
$link.category link=$category[i]}>
        <{
section name=i loop=$links}>
          <{include 
file="db:xdir_link.html" link=$links[i]}>
        <{/
section}>
      <{/
section}>
      
    td>tr>
table>
<{/if}>
<{include 
file='db:system_notification_select.html'}>
Thanks, Technobia
http://www.PrideDEPOT.com
Everybody Has A Right!

6
zyspec
Re: mX-Directory Error
  • 2007/3/20 1:09

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


technobia,

I believe this is the template engine problem referenced in this thread. If you comment out the lines in ./index.php as indicated in the thread and then clear your ./templates_c directory (except for the index.html file) that the problem will be resolved.

7
technobia
Re: mX-Directory Error
  • 2007/3/20 19:48

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Hey zyspec,

That did the trick thanks!!! I did however notice that the second part of line 40 did not rem out properly so I had to eliminate the code entirely. But, I am good to go now!

Thanks so very much - Your time & help IS VERY appreciated!
Thanks, Technobia
http://www.PrideDEPOT.com
Everybody Has A Right!

Login

Who's Online

300 user(s) are online (243 user(s) are browsing Support Forums)


Members: 0


Guests: 300


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits