-
Posts
601 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Frank Vèssia
-
[[Template core/front/system/searchResult is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
-
Nice module, I see I can get the current user's vote but what about a given user's vote?
-
Create comment inside a module
Frank Vèssia replied to Frank Vèssia's topic in Module/Plugin Development
thanks, anyway the problem was related to the module itself, some init issue, I uninstalled the module and reinstalled and now it works -
Create comment inside a module
Frank Vèssia replied to Frank Vèssia's topic in Module/Plugin Development
mmm, i tried to include those files (at least Comment.php) but still i got "Class 'Comment' not found"... -
Create comment inside a module
Frank Vèssia replied to Frank Vèssia's topic in Module/Plugin Development
it doesn't work, i tried wire('modules')->get('Comments') and wire('modules')->get('FieldtypeComments') I also tried $c = FieldtypeComments::Comment() -
Create comment inside a module
Frank Vèssia replied to Frank Vèssia's topic in Module/Plugin Development
mmm you are right... but how? Usually I use other module's methods but comment module doesn't have a "new()" like method so I'm not quite sure how to make this -
I'm trying to create a comment inside a module function but I got error "Class 'Comment' not found" public function postComment($pageid){ $input = wire('input'); $user = wire('user'); $sanitizer = wire('sanitizer'); $pages = wire('pages'); if($input->post->rv_text && $user->isLoggedin() && $pageid != ''){ $c = new Comment(); ... } }
-
strange error Illegal mix of collations
Frank Vèssia replied to Frank Vèssia's topic in General Support
Thanks Wanze, I'll try this. -
Hi, out of the sudden I got this error in two websites Error: Exception: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' (in /home/isoladel/public_html/wire/core/Database.php line 114)) any idea of what is it?
-
Yes I confirm, I uninstalled the module and reinstalled again and the error gone, sorry for that.
-
thanks for the reply, yes I'm gonna use that module, I already used in the past. regarding the "display of favs" I will show both, the picture page will display all users that added that picture, and in the profile page each user will display the list of favorite pictures, I think the real questions is: there will be more users of pictures in the database? or it doesn't matter for the query? option A (favs field inside user template) user profile $user->favs->count() picture page $users->count("favs={$page->id}") or find("favs={$page->id}") option B (favs field inside picture template) user profile $pages->find("template=picture,favs=$user") picture page $page->favs->count()
-
Hi guys, just a simple logic question: I'm going to create a list of favorites pictures for each user, using a page field. my question is: it's better to add a page field to the user template and add all favorites pictures there, or add the page field to the picture template and add there the list of all users that added that picture?
-
Hi, I just installed the latest version 1.5.1 on PW devns 3.0.3 (fresh install) and I got this warning Failed to init module: ProcessJumplinks - SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'last_hit'
-
I've recently moved my website to another server and now wiremailsmtp doesn't work anymore, it display this message: Warning: stream_socket_enable_crypto(): Peer certificate CN=`email-smtp.eu-west-1.amazonaws.com' did not match expected CN=`52.19.6.114' in /home/sodd/public_html/site/modules/WireMailSmtp/smtp_classes/smtp.php on line 1255 any idea? thanks
-
I've already used online page speed test but they got on timeout...
-
Hi, there is no CDN enabled or caching. The only thing I disabled while checking the problem was the mod_pagespeed which was enaled by default on bitnami server, but nothing changed. I'm running the latest 2.6.1
-
Hello guys, I'm facing a very strange issue. Out of nowhere my website is not responding fast as always and I didn't change anything. The issue is probably pw related because I checked everything else. - the server is running (on bitnami) - other static pages inside the root folder (not managed by pw) are accessible and rendering fast - I don't get eny errors inside logs files - Database is ok - I didn't make any modification to the PW or templates in the last month right now my pages are loading in about 1 minute (just the pages managed by PW) any idea of what to check? thanks
-
Thanks and sorry for the late reply I just read it.
-
Hi guys, I'm updating this discussion. After a while using @wanze solution to avoid the 32k limit of subfolders I'm thinking of upgrade PW to the latest version (from current 2.3) because since middle 2014 I didn't make any update because of this core custom modification. Now PW also solves this issue with the config option $config->pagefileExtendedPaths. Is there any chance the pw solution is the same of wanze so updating pw don't cause any issue to my current folders structure?
-
comments email notifications on cloud server
Frank Vèssia replied to Frank Vèssia's topic in General Support
Can be something related to the render function which I'm using for display the comments and the form? In fact I've noticed differences between the default function <?php echo $page->comments->renderAll(); ?> and the "manual" functions with custom parameters that I'm using <?php echo $page->comments->renderForm(array( 'headline' => "<h3><i class='cki-meatknife'></i> Commenta questa ricetta</h3>", 'successMessage' => "<div class='alert alert-success'>Grazie per aver commentato la ricetta.</div>", 'errorMessage' => "<div class='alert alert-danger'>Ci sono stati degli errori, riprova a scrivere il commento</div>", 'processInput' => true, 'encoding' => 'UTF-8', 'attrs' => array( 'id' => 'CommentForm', 'action' => './', 'method' => 'post', 'class' => '', 'rows' => 4, 'cols' => 50, ), 'labels' => array( 'cite' => 'Nome', 'email' => 'Email', 'text' => 'Commento', 'submit' => 'Pubblica', ), )); echo $page->comments->render(array( 'headline' => '<h3>Tutti i commenti</h3>', 'commentHeader' => '{cite} <small>ha scritto il {created}</small>', 'dateFormat' => '%d %B %Y alle %H:%I', 'encoding' => 'UTF-8', 'useVotes' => 1, 'admin' => false, // shows unapproved comments if true ));?> The second method doesn't display votes for example, and ignore the datetime format set for the field, so "maybe" also skip the notifications? It's like these methods are not using the new comments system...just guessing.. -
comments email notifications on cloud server
Frank Vèssia replied to Frank Vèssia's topic in General Support
mmm...yes I can see the module is using wireMail()...so the problem is somewhere else...thanks guys for the tips. -
comments email notifications on cloud server
Frank Vèssia replied to Frank Vèssia's topic in General Support
maybe some hooks? -
I'm running a blog on a Bitnami server which doesn't have email support. I'm using wireMailSmtp module with Amazon s3 for all the emails sent via Api but what about built in comments? Email notifications to admin and users don't work...any idea how to allow comments using smtp service?
-
of course
-
not