-
Posts
152 -
Joined
-
Last visited
Everything posted by cpx3
-
Thanks to everybody for the answer! I tried findRaw which seems to be the most effective but brings me to another problem: How to access page references? I have the following code: $items = $pages->findRaw("template=template-news, select_region=austria, limit=2, objects=1", ["select_countries" => [ "id", "title" ]]); where select_countries are referenced pages. But I have no clue how to access the select_countries id as it neither works with array[0] nor with select_countries->title...
-
Hi there, to display a single slide from a huge database I only need a single page. But when I use the selector $pages->findOne("template=template-news,start=1,sort=created")->title; the selector seems to ignore the start position and always returns the same page. As the docs specify clearly that findOne has the same options as find, I have been trying to find my mistake for the last four hours with any success... (I cannot use find as this slows down things extremly). Any ideas?
-
Page Hit Counter – Simple Page View Tracking
cpx3 replied to David Karich's topic in Modules/Plugins
Thanks anyway. I supposed it would as it is possible to exclude them. But they are definitely the source of the problem.- 111 replies
-
- hitcounter
- tracking
- (and 4 more)
-
Page Hit Counter – Simple Page View Tracking
cpx3 replied to David Karich's topic in Modules/Plugins
@wbmnfktrThe problem seems to appear only when url segments are activated. Is there anything I oversaw?- 111 replies
-
- hitcounter
- tracking
- (and 4 more)
-
Page Hit Counter – Simple Page View Tracking
cpx3 replied to David Karich's topic in Modules/Plugins
Thanks for the hint, I reinstalled the module and did everything as described but it still does not count anything...- 111 replies
-
- hitcounter
- tracking
- (and 4 more)
-
Page Hit Counter – Simple Page View Tracking
cpx3 replied to David Karich's topic in Modules/Plugins
Hi @David Karich, first thanks for the module I learnt to love on many sites. Today I installed version 2.0 on a new site and even if I see the script and the tag in the body tag nothing is beeing count. Any idea what I am doing wrong? (I accessed the site from five different devices).- 111 replies
-
- hitcounter
- tracking
- (and 4 more)
-
Thanks for the incredible support here!
-
Adrian, thanks for your reply. I actually disabled both of them (by uninstalling the SessionHandlerDB module). It became slightly better but now another problem appeared: The selector "select_regions.name!=schweiz,select_regions.name!=liechtenstein, template=template-news, start=1, limit=1, sort=-id". Any idea what might be wrong?
-
There seems to be a problem with the sessions. I always find the error message: Error: Exception: Unable to obtain lock for session (retry in 30s) in my log and the page seems to be delayed. I commented out all the sessions but it does not become better. Maybe there is no relation between that and the update but the problems occured immediately after updating PW.
-
I did the update, now I cannot even login to PW anymore as the admin is not loading... (I restarted the whole server but it does not help at all). Any other ideas?
-
Yes, I did! Thanks for the hint, I will immediately update it!
-
Thanks for the support! I tried everything, including a complete new installation, but the update seemed to be a coincidence. Actually the error message I found in the logs was the following: "Error: Exception: Unable to obtain lock for session (retry in 30s)"... When not using any sessions it seems to work.
-
After installing the update unfortunately the site does not load anymore. Neither the frontend nor the backend seems to be accessible anymore, everything freezes while loading...
-
@flydev Merci beaucoup (also for your wonderful modul!) Eventually I found the problem: it was a missing trailing slash in the url segment, although the setting was to either / or. Thanks to all of you for the support!
-
I do not use ProCache in this project but in another, so is good to know that it might cause troubles (I never read about that). I need sessions for navigation as I do not want urlSegments on the startpage and I need to know which in which „area“ of the page the user is (the menu depends on that). Any other idea?
-
Oh, thanks for the hint! How do you replace sessions to work with Procache? (I use that, too)
-
wbmnfktr, thanks for your answer! Actually I have not a general problem with urlSegments, they work. When using urlSegment1 on www.domain.com/seg1/seg2 it works fine. The problem appears when I save this urlSegment1 to a session and then call a page www.domain.com/ with NO urlSegment, the session value is changed to "assets" even I tell PW to change the session value only if strlen($input->urlSegment1)>0. This only happens when I want PW to leave the session value alone... It must have to do with urlSegments (#3 for example gave me the path of an image file) as the problem does not occur with any other value.
-
Hello! When I try to get an urlSegment of a page that has no urlSegment (i.e. www.domain.com/ ) the value is always changed to "assets". When trying to receive urlSegment2 (that also does not exist) I get the filename of an image. Any idea what I am doing wrong? Thanks in advance, Bernhard
-
Hi co-programmers, I try to write the value of an url segment to a session. All works fine as long as there IS a segment, but the moment there is no segment, my values are set to empty or to "assets". My code is if ($input->urlSegment1 && !empty($input->urlSegment1)) {$session->set("region", $input->urlSegment1);} I just want the session-value to be left alone when I go back to the start page (which has no segments) and not to be changed. Any ideas what I am doing wrong? Thanks, Bernhard
-
FieldtypeDatetimeAdvanced - subfield selectors for date/time
cpx3 replied to BitPoet's topic in Module/Plugin Development
Thanks for the quick answer, even if I would really have liked the idea of your module... -
FieldtypeDatetimeAdvanced - subfield selectors for date/time
cpx3 replied to BitPoet's topic in Module/Plugin Development
@BitPoetFirst thanks for your work and for the module I really would love to use at it is exactly what I am looking for! The only problem is that after installing and trying to use it, I get the error message: "Call to undefined method stdClass::attr()" when using it as a field type for a field. Whatever I try is useless as I can't even uninstall the module because it says it is blocked by a field. Same is true for the Advanced Datetime Inputfield, which I cannot install because every attempt to do so immediately creates an error message. Any idea what I am doing wrong? -
Module Profile Export module (also upgrade PW 2.0 to 2.1)
cpx3 replied to ryan's topic in Modules/Plugins
Hello, when I try to install that module (or better said update it), I always get the error message: ProcessWire 3.0.190 >= .selfminVersion My Processwire is 3.0.190. Any ideas? Thanks in advance! -
DB Backups module error: Allowed memory size exhausted
cpx3 replied to cpx3's topic in General Support
The problem seems to be a module as this only appears at one site and I found that solution here in the forum. But how could I determine, which one? -
DB Backups module error: Allowed memory size exhausted
cpx3 replied to cpx3's topic in General Support
stanoliver, I have my own server and the PHP memory limit ist set to 128 MB. The interesting thing is that the problem only occurs with one site and that I read in the forum that it might have a relation to a module that renders two input field buttons. But I don't have any idea which it could be. -
Hi there, when trying to backup the database with the backup module I always get the error message: Fatal Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) (line 1325 of wire/core/WireDatabaseBackup.php) . Any idea how to solve that? Thanks in advance!