Jump to content

Jozsef

Members
  • Content Count

    127
  • Joined

  • Last visited

Everything posted by Jozsef

  1. Hi @kongondo, I've just seen this thread and couldn't be happier. I used Padloper in the past as an early adopter but I always felt it wasn't for the faint hearted. It's great to know that it has a future and I hope v2 will be possible to use without PHP guru skills. I build almost all my sites on ProcessWire and it'd be nice to have the basic features covered by the module itself (promotion, tax, shipping, user accounts, order management etc…). Many of these were up to us to implement and it was prohibiting for front-end people. Best of luck with the project and thank you for your commitment!
  2. 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.
  3. 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.
  4. @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.
  5. 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: http://debsireland.com/ticketing/login-facebook The Facebook app settings are attached.
  6. 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.
  7. 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.
  8. 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).
  9. 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?
  10. 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.
  11. 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: http://debs.focuswebsolutions.ie (Apache with PHP 5.4.45 and MySQL 5.1.59) New place: https://www.debsireland.com (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
  12. 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
  13. 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.
  14. Sorry for the late reply, it seems to improve things indeed. Thanks.
  15. 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
  16. 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.
  17. @Macrura, do you mean that you use PW with HTML themes?
  18. Hi everyone, I'd like to start a conversation about your view and practices for profitable web design and development (unless there is already one that I didn't find). I use ProcessWire for most of my sites currently. Wherever I look though I can see plenty of web design freelancers and even larger agencies running exclusively on WordPress and themes. Many people are running "web design" businesses even without any development skills. There are just so many that I started to doubt if that's the way to go. - Do you use Wordpress + themes to cut cost and increase your bottom line? If yes, what is the middle ground? Is it worth to put up with WP? - If not, what alternatives you use for micro/small businesses? - And finally, how do you use ProcessWire to speed up small, basic brochure websites? Clients care more about budget and results than "custom" design. I love working with ProcessWire but only if it doesn't mean lost opportunities. Any opinions are welcome, especially from those of you who are advocates for themes yet are skilled developers.
  19. Hi there, thanks for the great module. I installed it on PW 3.0.33 with PHP 5.4.45 and I get an error message: Fatal error: Call to undefined method stdClass::getIterator() in /home/funevents/public_html/site/assets/cache/FileCompiler/site/modules/TracyDebugger/panels/DebugModePanel.php on line 422 Is there something missing on my server? Thanks.
  20. Ok, here is a strange one running PW 3.0.33 on PHP 5.4.45 and have max image dimensions set up to resize images to 2000x2000 pixels on upload. Portrait mage upload results in a missing JSON response and the thumbnail just sitting there with 100% progress bar and the spinning wheel. I can upload landscape images but portrait ones trigger the error. I rotated a portrait image before upload and the same image was uploaded successfully then. I'm getting this error for portrait images in Chrome: Uncaught TypeError: Cannot read property 'length' of null at XMLHttpRequest.<anonymous> (InputfieldImage.min.js?v=119-1488236130:1) (anonymous) @ InputfieldImage.min.js?v=119-1488236130:1 in Safari: TypeError: null is not an object (evaluating 'aM.length') Any idea what's going on here? Thanks
  21. I am so busted… Apologies and learning as I go.
  22. Hi everyone, I'm using Fredi to let users add adverts to a site. It works fine for adding/editing pages but how can I get it to accept images uploaded in one step? The page must be saved first so the image is not saved when the user saves the page the first time. Any tips? Maybe a two step process? Tabs? I'm in the dark… I'm using this code that works great for adding the page, but how to hook into save the page before the user uploads an image? $fredi = $modules->get("Fredi"); $content .= $fredi->setText("Sell a dress")->setClass("link-button")->addPage("dress", "title|body|images|price|brand|colour|size|condition|length|style|contact|phone|email|county", $pages->get(1243));
  23. Hi everyone, I'm using Fredi to let users add advert to a site. It works fine for adding/editing pages but how can I get it to accept images uploaded in one step? The page must be saved first so the image is not saved when the user saves the page the first time. Any tips? Maybe a two step process? Tabs? I'm in the dark...
  24. @modifiedcontent, I'm sorry, as I mentioned I'm no expert when it comes to PHP and PW hooks. I hope someone can jump in to help you out.
  25. I'm no PHP or PW guru neither but this is how I see it (food for thought): You created a new input field but didn't make it part of the wire('fu') object – hence pwFoo's comment. So when you get to the wire('fu')->process(); your hook will be able to process your input field. This is what happens here: // Define the field before you call FU and add it as additional field... $fu->register(array('username', 'email', 'password', $myField)); I'm sure you will get there soon based on the example above.
×
×
  • Create New...