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
Michel
Thanks fretzl & Roland for your delicacy,
I am french and it was already changded for
echo Commentaires/Comments,
my gallery is or will be 'Français/English' when published.
The plugin was alredy enabled and in Plugins/Active. I tought that enable meant activate the plugin like for Rating or other plugins
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
mazurki
{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]
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.
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.
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...
Thanks
mazurki
https://photosmichel.com/
Are comments activated for individual images?
https://www.zenphoto.org/screenshots/zenphoto-admin/album.jpg.html
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.
Many thanks
mazurki