• Content Count

  • Joined

  • Last visited

Community Reputation

20 Excellent

About Jozsef

  • Rank
    Full Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Dundalk, Ireland
  1. Thanks for the quick reply, I haven't checked the github issues… Creating the user and publish it when confirmed could work well, however it would lead to other problems when something goes wrong (such as email address is already taken etc…). On the top of it, security is important because there is order and payment processing involved for those registered users.
  2. Hi there, I've implemented the login/register module on a website I've built. It's very easy to work with and I like it a lot. One problem though: email registration data is stored in the session cookie. When someone tries to validate in a different browser, validation will fail. It turns out that it's fairly common for people to open email links in the cell phone app's internal browser or starting the registration on desktop but reading emails on mobile. It's a valid user expectation that validation will complete in all situation, we get many confused emails though about this issue. Question: any idea how to sort this to work across devices and browsers? I was thinking if there was a way to re-open the old session somehow by passing the session ID in the validation link or something like this? I looked through everything I could find about PW and PHP sessions with no luck. Alternatively: do you think it would be very difficult to store the data temporary in the database instead of the session file? (Note: I have VERY limited PHP skills). Thank you for your input in advance.
  3. @Juergen, I think that option is available in the module configuration in the admin and it just means that a single user account would be created and every FB account would map there. I'm having the same issue though: using the Login for Facebook and the Login/Register modules together results in duplicate accounts for the same email address. If someone already registered their email address and later logins with Facebook, the module creates another user with the same email address, rather than map the FB account to the existing user account. Since the Login/Register module is already integrated with the FB module (it outputs a login link automatically if the FB module is found), it would be a great idea to integrate the two modules even further. The front end login form uses email rather than username on my site so duplicate email addresses are an even bigger problem. Any idea how to get around this? The site is selling tickets, it would lead to confusions and lost orders because of this.
  4. Hi there, I'm having trouble with @ryan's Login for Facebook module. I setup both the app and the module and it seem to work to a point. When I click on the Login with Facebook button, it takes me to Facebook, the app presents the authentication and upon approval, it takes me back to the site. Instead of logging me in, it doesn't create any user instead responds with an error message: "Returned facebook user data has no user ID". Upon inspection of the module code (no great PHP skills here) it looks like there's a valid response but the user data is empty. Does anyone have similar trouble? Where do you suggest me to look? How to debug it? This is the page: The Facebook app settings are attached.
  5. Jozsef

    The only solution I've found is to downgrade the MapMarker module to 2.0.6, I believe. That's the last working version for me.
  6. Just had this problem after moving my site from localhost to the live server (v3.0.68 from PHP 5.6 to PHP 7.1). @LostKobrakai, your solution (refreshing the modules twice) sorted the error message and all module version changes registered properly. Thanks for the simple idea.
  7. Jozsef

    Here's the solution I've found: disabling tags on the image field sorted all problems. Tags were enabled for that image field but not used.When I disabled tags, everything came back to normal and the site shred off all excess processing time. First byte time is 1s or less now. @ryan, is it a bug or there's an explanation for this behaviour? Enabling tags brings back the slowness again. All of that is happening on A2 reseller hosting (shared hosting with LiteSpeed, PHP 7.1 running as lsphp process) while speeds were satisfactory on my small VPS (2 cores, 2Gb RAM, Apache + PHP 5.4).
  8. Jozsef

    Ok, I've found the bottleneck that causes many seconds delay in processing time. When I uncomment the lines below in different foreach loops, processing time drops by 6s. The images->first statement is called about 9 times for the home page. $block_img = $pageblock->images ? $pageblock->images->first() : null; and $img = $block->images->first(); I'm running the latest version of PW. Edit: When I had a look at the "images" field in Setup > Fields I noticed that opening that page also took 10+ seconds that is weird. I suspect that I have a trouble with that field somehow but how to debug this issue?
  9. Jozsef

    Traceroute is fine and htaccess files are the default PW ones, no change. I'm pretty sure it's something about PHP/MySQL but don't know what to look for or how to debug what happens during that time before the first byte. All sites are built on the intermediate site profile and not that much different on the template level from each other. Yet, other PW sites on the same hosting have first byte times around 600-800ms, this one has 5-8s.
  10. I'm moving all my PW sites from my small VPS to a reseller account at A2 Hosting. The last site I moved over became very slow though, First byte time went from less than 1s to 5s and more and fully loaded time from 2.5s to 7+. The site is an exact copy of the old one. Any ideas what is going on? Old place: (Apache with PHP 5.4.45 and MySQL 5.1.59) New place: (LiteSpeed with PHP 7.1 and MySQL 5.1.73) The hosting company already tested the hosting account and found everything in order. Also, other sites I moved run at similar speeds on the old and new server. Any suggestion where should I look? File permissions seem to be ok. Thanks
  11. Jozsef

    Hi, I just ran into this issue with 3.0.61. I have has_parent as a sub selector for a page reference field. $categories = $pages->find("page_field=[has_parent=1234]"); It worked fine and at some point it stopped producing any results. It works if I move it out and do a two step filtering. The only thing I did was to import more pages via Ryan's Import CSV module. $parent = $pages->find("has_parent=1234); $categories = $pages->find("page_field=$parent"); @LostKobrakai, would you mind sharing your module for fixing the parents table? Thanks
  12. Jozsef

    The same issue. Running PW 3.0.61 and Map Marker 2.0.6 worked just fine. After upgrading to 2.0.9 and entering my API key I get the above error to any address I try.
  13. Jozsef

    Sorry for the late reply, it seems to improve things indeed. Thanks.
  14. Jozsef

    Am I doing something wrong or some of you encountered the same issue? When using the simple navigation module it turns out that the site is loading every single visible and published pages in the page tree with every page request even though the max level is set to 1. Tracy debugger reported over 8000 pages loaded on the home page on a bigger site I made, no wonder it took 15+ seconds to load. I checked on other sites I made with similar results. I swapped the navigation over to a function on the above site and the site got lightning fast again, as I expect from ProcessWire. Is that an expected behaviour or am I doing something wrong? This is the code I used to output the navigation and had v1.3.3 installed: $treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module $menuoptions = array('show_root' => true, 'max_levels' => 1, 'outer_tpl' => "<ul class='topnav clearfix'>||</ul>", 'inner_tpl' => "<ul class='subnav'>||</ul>"); echo $treeMenu->render($menuoptions); // render default menu
  15. Jozsef

    I build my sites on top of my existing PW site profiles I take from previous sites too if you can consider that as a theme. My question is more from the commercial side of things. I find myself spending much more time with simple projects than others and that's why I was wondering what you guys think of alternatives. On freelancer forums people tend to see only WP but I know that most of you are seasoned developers coming from other systems.