![]() |
|
printCommentForm() - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: printCommentForm() (/thread-13917.html) Pages:
1
2
|
printCommentForm() - Mazurki - 18-02-2024 Hi, I'm a photograher building up a galery with ZenPhoto and I want users to be able to put comments under images, can you help me with this "Place a call on the function printCommentForm() in your script where you wish the comment items to appear. " So I have tried a few things in this string in the image.php . Can you tell me what and where to place the call.
Many Thanks printCommentForm() - fretzl - 18-02-2024 That should work. You're sure the [i]comment_form[/i] plugin is enabled? printCommentForm() - Mazurki - 18-02-2024 Thanks for the answer, no it is not enable, how can I do so? printCommentForm() - fretzl - 19-02-2024 Go to: Admin —> Plugins —> check the box next to comment_form printCommentForm() - Roland - 19-02-2024 Shame on me, I forgot somes gettext on Collections,
to
so you will get a localized string. printCommentForm() - Mazurki - 19-02-2024 Thanks fretzl & Roland for your delicacy, I am french and it was already changded for The plugin was alredy enabled and in Plugins/Active. I tought that enable meant activate the plugin like for Rating or other plugins
printCommentForm() - fretzl - 20-02-2024 What theme are you using? printCommentForm() - Mazurki - 20-02-2024 I'm using Collections with these plugins; comment_form, contact_form, hitcounter, ipBloocker, mobileTheme, print_album_menu, rating, reCaptcha, rss, security_logger, seo_zenphoto, sitemap_extended and uploader_jQuery. May be some are not really necessary or useful? Thanks printCommentForm() - fretzl - 20-02-2024 Weird, it works for me. printCommentForm() - Mazurki - 21-02-2024 {2716853:Wed, 21 Feb 2024 00:38:56 GMT} WARNING: mysqli::__construct(): (42000/1203): User photo698_zen82 already has more than 'max_user_connections' active connections in /home/photo698/galerie.photosmichel.com/dossier/zp-core/classes/class-dbmysqli.php on line 26 mysqli->construct called from dbMySQLi->construct (class-dbmysqli.php [26]) from require_once (functions-basic.php [219]) from i.php [35] {2716853:Wed, 21 Feb 2024 00:38:56 GMT} WARNING: mysqli::query(): Couldn't fetch mysqli in /home/photo698/galerie.photosmichel.com/dossier/zp-core/classes/class-dbmysqli.php on line 72 mysqli->query called from dbMySQLi->query (class-dbmysqli.php [72]) from dbMySQLi->querySingleRow (class-dbmysqli.php [98]) from dbBase->getVersionComplete (class-dbbase.php [633]) from dbBase->getVersion (class-dbbase.php [611]) from dbBase->hasUtf8mb4Support (class-dbbase.php [694]) from dbMySQLi->__construct (class-dbmysqli.php [38]) from require_once (functions-basic.php [219]) from i.php [35] {2716853:Wed, 21 Feb 2024 00:38:56 GMT} WARNING: mysqli_error(): Couldn't fetch mysqli in /home/photo698/galerie.photosmichel.com/dossier/zp-core/classes/class-dbmysqli.php on line 178 mysqli_error called from dbMySQLi->getError (class-dbmysqli.php [178]) from dbMySQLi->query (class-dbmysqli.php [83]) from dbMySQLi->querySingleRow (class-dbmysqli.php [98]) from dbBase->getVersionComplete (class-dbbase.php [633]) from dbBase->getVersion (class-dbbase.php [611]) from dbBase->hasUtf8mb4Support (class-dbbase.php [694]) from dbMySQLi->__construct (class-dbmysqli.php [38]) from require_once (functions-basic.php [219]) from i.php [35] {2716853:Wed, 21 Feb 2024 00:38:56 GMT} USER ERROR: mysqli Error: ( SELECT version() ) failed. mysqli returned the error in /home/photo698/galerie.photosmichel.com/dossier/zp-core/classes/class-dbmysqli.php on line 83 trigger_error called from dbMySQLi->query (class-dbmysqli.php [83]) from dbMySQLi->querySingleRow (class-dbmysqli.php [98]) from dbBase->getVersionComplete (class-dbbase.php [633]) from dbBase->getVersion (class-dbbase.php [611]) from dbBase->hasUtf8mb4Support (class-dbbase.php [694]) from dbMySQLi->__construct (class-dbmysqli.php [38]) from require_once (functions-basic.php [219]) from i.php [35] printCommentForm() - acrylian - 21-02-2024 That error means you mysql database server cannot handle the connections made. That can only be solve by rasing that limit on the server. All the others are follow ups errors of the first.t This normally only happens on sites with really lots of traffic when the server cannot handle that. printCommentForm() - Mazurki - 21-02-2024 Thanks acrylian, I have open a ticket with my Host awaiting a response. I am wndering if this have a real impact on the fact that the comment_form plugin does not load or print on thje page? Have a nice day printCommentForm() - acrylian - 21-02-2024 Yes and no I would say. the site itself uses database requests even without the comment_form. But that of course uses an additional one at least to ge the existing comments. Could be that this is the one that exceeds your db server. But likely it is a general server things. Do you have other sites on thesame account that perhaps "eat" server limits here? Do you have shared hosting? There is a huge differences in these hosts and plans. You don't need your own server or something if you have a "normal" site. The larger a site regarding albums and images the more power it certainly needs in general. Especially the more traffic you might get. Our own site is on shared hosting as well. printCommentForm() - acrylian - 21-02-2024 If your server is really reaching db limits too fast, also try the static_html_cache plugin. If you don't update that often use a long time frame until it updates itself. printCommentForm() - Mazurki - 21-02-2024 Yes in deed, this new gallery is on a subdomain... I will keep in touch Many thanks for your support printCommentForm() - Mazurki - 25-02-2024 I am no longer on a subdomaine I am live on a clean fresh installation, I have also isntalled static_html_cache plugin and unfortunatly the comment_form is still not printing... printCommentForm() - fretzl - 25-02-2024 Are comments activated for individual images? https://www.zenphoto.org/screenshots/zenphoto-admin/album.jpg.html printCommentForm() - Mazurki - 25-02-2024 Thank you so much, it wors... Have a nice day printCommentForm() - Mazurki - 27-02-2024 My comment_form has the Name field, the Email field and the comment block, when I hit submit the information is saved and the comment block empties but the other two don't. What to do so that they disappear at the same time. I tried several things but couldn't do it. printCommentForm() - fretzl - 27-02-2024 That only happens when you are logged-in. |