11
nthomson
HTML templates not being generated correctly in template_c, smarty problem
  • 2004/7/29 14:41

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hi,

I had installed a new template called Zaza and had selected this template to be used as the Default template set in SystemAdmin -> Preferences -> General Settings.I started having the problems then.I could not update any modules. If I made changes to the html template files in the module it just wouldn't show the new changes, but still continue to use the old html template structure.

When we realized that we should only use the "default template" until we move the site completely into production, we changed it back to "default template".

But still the modules were not getting updated. When i check the templates_c folder, there are many partially created files called 41085cb0dbc52, 41085cb0ec166 etc.. instead of db%3Awfdownloads_index.html, db%3Awfdownloads_ratefile.html etc..So i cannot delete all the files in template_c and start all over cos the html files are not created properly in templates_c are not overwriting the existing html templates for that module

Has any one come across this problem ?

Appreciate any help..

Thanks,
Ann

eg:
The html file generated itself is not malformed, but it is not definitely getting named correctly as db%something.html

Example of incorrectly named file 41085cb0dbc52(which should have been correctly named as db%3Amydownloads_download.html)

<?php /* Smarty version 2.5.0, created on 2004-07-29 11:14:06
compiled from db:wfdownloads_download.html */ ?>
<?php if ($this->_tpl_vars['show_categort_title'] == true): ?>
<div style="margin-bottom: 4px;"><b><?php echo @constant('_MD_WFD_CATEGORYC'); ?>
</b><?php echo $this->_tpl_vars['down']['category']; ?>
</div>
<?php endif; ?>

<table width="100%" cellspacing="1" cellpadding="2">
<tr>
<td width="82%" align="left">
<a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/wfdownloads/visit.php?cid=<?php echo $this->_tpl_vars['down']['cid']; ?>
&lid=<?php echo $this->_tpl_vars['down']['id']; ?>
"><span class="itemTitle">
<font size="3"><?php echo $this->_tpl_vars['down']['title']; ?>
</font> </span></a> <?php echo $this->_tpl_vars['down']['icons']; ?>

</td>
<td width="18%" align="right" nowrap="nowrap">
&nbsp;</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#000000"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="even" style="line-height: 10px;">
<td width="50%"><small><strong><?php echo @constant('_MD_WFD_SUBMITTER'); ?>
:</strong> <?php echo $this->_tpl_vars['down']['submitter']; ?>

<?php echo $this->_tpl_vars['down']['adminlink']; ?>
</small></td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="line-height: 12px;" >&nbsp;</td>
</tr>
</table>
</tr>
</table>
<br />



12
nthomson
Re: Unable to update modules
  • 2004/7/29 2:04

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hi,

I have kind of figured out what the problem is but still not got any solutions..We had installed a new template called Zaza and had selected this template to be used as the Default template set in SystemAdmin -> Preferences -> General Settings.We started having the above problems then.

When we realized that we should only use the "default template" until we move the site completely into production, we changed it back to "default template".

But still the modules were not getting updated. When i check the templates_c folder, there are many partially created files called 41085cb0dbc52, 41085cb0ec166 etc.. instead of db%3Awfdownloads_index.html, db%3Awfdownloads_ratefile.html etc..So i cannot delete all the files in template_c and start all over cos the html files are not created properly in templates_c..
Has any one come across this problem ?

Appreciate all your help so far..

Thanks,
Ann

eg:
The html file generated itself is not malformed, but it is not definitely getting named correctly as db%something.html

Example of incorrectly named file 41085cb0dbc52(which should have been correctly named as db%3Amydownloads_download.html)

<?php /* Smarty version 2.5.0, created on 2004-07-29 11:14:06
compiled from db:wfdownloads_download.html */ ?>
<?php if ($this->_tpl_vars['show_categort_title'] == true): ?>
<div style="margin-bottom: 4px;"><b><?php echo @constant('_MD_WFD_CATEGORYC'); ?>
</b><?php echo $this->_tpl_vars['down']['category']; ?>
</div>
<?php endif; ?>

<table width="100%" cellspacing="1" cellpadding="2">
<tr>
<td width="82%" align="left">
<a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/wfdownloads/visit.php?cid=<?php echo $this->_tpl_vars['down']['cid']; ?>
&lid=<?php echo $this->_tpl_vars['down']['id']; ?>
"><span class="itemTitle">
<font size="3"><?php echo $this->_tpl_vars['down']['title']; ?>
</font> </span></a> <?php echo $this->_tpl_vars['down']['icons']; ?>

</td>
<td width="18%" align="right" nowrap="nowrap">
&nbsp;</td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#000000"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr class="even" style="line-height: 10px;">
<td width="50%"><small><strong><?php echo @constant('_MD_WFD_SUBMITTER'); ?>
:</strong> <?php echo $this->_tpl_vars['down']['submitter']; ?>

<?php echo $this->_tpl_vars['down']['adminlink']; ?>
</small></td>
<td>&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="line-height: 12px;" >&nbsp;</td>
</tr>
</table>
</tr>
</table>
<br />



13
nthomson
Re: Unable to update modules
  • 2004/7/28 23:16

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Thanks M0nty..I deleted the admin.php, so when i installed a module again, it recreated the whole admin.php and i don't get "failed open file" and "Unable to write to main menu error" any more..

Whenever i updata a module, the html files are getting updated in template_c.Let me work on it some more..and will let u know how it goes..

Thanks,
Ann







14
nthomson
Unable to update modules
  • 2004/7/28 21:27

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hi,

I have been having a strange problem for the past 2 days..I am not able to update modules..I don't know why/how this is happening.

For eg:
1)i make some changes in the template files of any module.And after that if i update the file, the new changes don't take place.

2)I know the modified templates are getting saved to the database because when i check System Admin -> Templates , i see the modified templates there..I am using the default XOOPS template set..

3)And also i have set "Update module template .html files from themes/your theme/templates directory?" to "yes" in System Admin -> Prefences -> General Settings.

4)I modified some code in one of the templates and when i updated that module from the module administration interface, that too is not getting updated. There fore it is not a problem with templates alone, but the whole module is not getting updated but it is getting cached some where

5)It's like it is caching the files some where even though i have specified "No Cache" for all the modules..I have been working continuously trying to figure out what could be wrong..

6)I also get these errors below whenever I update/install a module since the time i reinstalled the wfdownloads 2 days ago.i am thinking whether it's related?? But i had successful updated some modules even after i started getting these below errors..

I get first "failed open file" followed by "Unable to write to main menu"
eg:-
failed open fileUpdating templates...
Template xoopspartners_index.html inserted to the database.
Template xoopspartners_index.html recompiled.
Template xoopspartners_join.html inserted to the database.
Template xoopspartners_join.html recompiled.

Unable to write to main menu.

Rebuilding blocks...
Block Partners updated. Block ID: 36
Template xoopspartners_block_site.html updated.
Template xoopspartners_block_site.html recompiled.
Deleting module config options...
Config data deleted from the database. Config ID: 2769
Config data deleted from the database. Config ID: 2770
Config data deleted from the database. Config ID: 2771
Config data deleted from the database. Config ID: 2772
Config data deleted from the database. Config ID: 2773
Adding module config data...
Config cookietime added to the database.
.
.
.
Config option added. Name: _DESCENDING Value: DESC

Module Partners updated successfully.

I have removed readonly(windows server) for cache, template_c, cache/adminmenu.php etc..

Based onhttp://wiki.xoops.org/wakka.php?wakka=FAQFAILWRITE
how do i check if 1) The request method is not POST or
2) The HTTP_REFERER check fails

Any help will be greatly appreciated..

Thanks,
Ann



15
nthomson
Re: Unable to write to main menu
  • 2004/7/27 22:13

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hi ,

I did give adminmenu.php 777(ie removed readonly attribute for adminmenu.php and cache folder in windows)..i still get the error along with "failed open file"

Thanks,
Ann



16
nthomson
Unable to write to main menu
  • 2004/7/26 23:12

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hi,

I know this question has been asked before..Whenever i try to install/uninstall a module, i get a message on top saying "File not found" and "Unable to write to main menu"

I have removed readonly(windows server) for cache, template_c, cache/adminmenu.php etc..

Still i get the same error..Has any one fixed this..I don't know why i get this...

-Ann



17
nthomson
WF-Section file upload error
  • 2004/7/26 19:54

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13



Hi everyone,

I recently downloaded WF-Section V2 (2) .It works great!! The only problem is file uploading..While uploading any type of files i get the following errors:

1)
WARNING: This upload failed. Reason:
File: logo.jpeg
Mimetype:


Errors Returned While Uploading
File Mimetype does not match the file extention!
File Mimetype: image/pjpeg
File Extention: jpeg

2)WARNING: This upload failed. Reason:
File: cEditor.txt
Mimetype:


Errors Returned While Uploading
Failed uploading file:


I have enabled gif,jpeg and txt files upload in module settings of wf-section..

I read this problem has been fixed with the latest release.. I think I am using the latest release (WF-Section V2 (2)). Or is it fixed in an upcoming release?

I have posted the same question on wf-section site too..

Any help to resolve this problem will be greatly appreciated..

Thanks,
Ann



18
nthomson
Re: Spotlight Images
  • 2004/7/26 19:38

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Found a solution..WF-Sections...

Ann



19
nthomson
Spotlight Images
  • 2004/7/26 16:49

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Hi,

I am trying to use spotlight with XF-Sections..
What i require is mainly a block on the front page which will show a picture/image and when i click on it, it will go to the respective article. Should i use XF-Section Spotlight Image for that?

In XF-Section Configuration of the spotlight module, where do the XF-Section Spotlight Image selections come from? Is it from images folder in the spotlight module folder ? I uploaded the image using the Upload Image section and also tried putting the image in the thumbs folder inside the images folder.It wouldn't show up..

can some one help please?

Thanks,
Ann



20
nthomson
Re: Easy Download Module , WFDownload worries
  • 2004/7/22 19:26

  • nthomson

  • Just popping in

  • Posts: 49

  • Since: 2004/4/13


Thanks a buch Bender and every one else..The submit page display problem was because of the theme..There was no corresponding </td></tr> for <tr><td> tags in the mh_xfact theme..

Thank u for all ur help

Ann




TopTop
« 1 (2) 3 4 5 »



Login

Who's Online

224 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

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

Latest GitHub Commits