Keyword

Sub template problem with mod_k2_content

  • Philippe Ranc
  • Philippe Ranc's Avatar Topic Author
  • Offline
  • New Member
More
12 years 10 months ago #61636 by Philippe Ranc
Sub template problem with mod_k2_content was created by Philippe Ranc
Hello,

I wanted to create sub-template for the mod_k2_content.

I've added the mod_k2_content directory in "/httpdocs/templates/[template_name]/html/" and I've choosen me new sub-template in the module configuration.

Here, all is ok.

But, when I refresh my browser... it's written:

Warning: require() [function.require]: Unable to access /home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/tmpl/News/default.php in /home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/mod_k2_content.php on line 48

it's like K2 core did'nt look at the good point.

is it a bug or didn't I understand the good process.

Thanks for you help

Phil

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #61637 by Jiliko.net
Replied by Jiliko.net on topic Re: Sub template problem with mod_k2_content
Bonjour Philippe,

Je vérifierais les majuscules/minuscules sur le nom du répertoire et fichier de ton template ainsi que les droits d'accès.

Olivier

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #61638 by Philippe Ranc
Replied by Philippe Ranc on topic Re: Sub template problem with mod_k2_content
Salut Olivier,

Merci pour le conseil. Mais cela ne change rien.

Le problème, selon moi est le suivant:

En introduction, voici le message complet:

Warning: require() [function.require]: Unable to access /home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/tmpl/news/default.php in /home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/mod_k2_content.php on line 48

Warning: require(/home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/tmpl/news/default.php) [function.require]: failed to open stream: No such file or directory in /home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/mod_k2_content.php on line 48

Warning: require() [function.require]: Unable to access /home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/tmpl/news/default.php in /home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/mod_k2_content.php on line 48

Warning: require(/home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/tmpl/news/default.php) [function.require]: failed to open stream: No such file or directory in /home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/mod_k2_content.php on line 48

Fatal error: require() [function.require]: Failed opening required '/home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/tmpl/news/default.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/httpd/vhosts/ambiances.org/httpdocs/modules/mod_k2_content/mod_k2_content.php on line 48

Puis, mon explication:

Il fait référence au chemin :
/httpdocs/modules/mod_k2_content/tmpl/news/

or... si je customize mon template en ajoutant un répertoire /template/html/mod_k2_content , c'est pour que k2 pointe à cet endroit et non dans le répertoire standard du module.

Sinon, je peux aussi aller éditer le module dans /module/mod_k2_content/ mais si je pouvais éviter... ce serait mieux.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum