Jump to content

thlinna

Members
  • Posts

    45
  • Joined

  • Last visited

Posts posted by thlinna

  1. I was unable to find a proper way to send email to page creator. I'm pretty sure the API provides a way to refer $creator->email this, but how is it accomplished?

    I've got WireMailMailgun set up and working, so all I practically need is a way to dig up the email address of the page creator.

  2. Hi @teppo,

    I am testing your module with PW 3.0.118, and found problems with compatibility. I presume some changes made in 3.0.73 (?) reagarding to Fieldsets may have bricked it. Is there any way to update the module to support latest development versions of the PW?

    Thanks in advance!

  3. Thanks @netcarver for quick response. The address is stored in three different fields (street, zip, postal code). 

    I am not that experienced in scripting or coding in PHP. Though I am able to execute code, fix bugs, change logic or modify functionality with try and error with my history in C++, C# and Java.

    Do you know if there is a good source for such scripting to start with? I believe I would not be the only one considering modifying my existing implementation to utilise this very much appreciated improvement in PW.

  4. Had the same problem with nginx 1.10.3, and here is the solution I found from StackExchange:

    Quote

    Be certain you have included your increased upload directive in ALL THREE separate definition blocks (server, location & http). Each should have a separate line entry. The result will like something like this (where the ... reflects other lines in the definition block): 

    
    http {
        ...
        client_max_body_size 20M;
    }    
    

    This above block may be found from /etc/nginx/nginx.conf file. The following block was in /etc/nginx/conf.d/default.conf in my server environment.

    
    server {
        ...
        client_max_body_size 20M;
    }
    
    location / {
        ...
        client_max_body_size 20M;
    }
    

    Location of nginx configuration files may vary depending on your configuration. Please refer to nginx documentation if different from above paths. Of course one may increase or decrease the upload size limit from 20M to best suit own needs and preferences. 

    • Like 1
  5. I get the following error message:

    Error: Exception: Data too long for column 'embed_code' at row 1 (in xx/core/Database.php line 125) #0 [internal function]: ProcessWire\Database->query('INSERT INTO tex...') #1 xx/core/DatabaseMysqli.php(38): call_user_func_array(Array, Array) #2 xx/site/assets/cache/FileCompiler/site/modules/TextformatterOEmbed/TextformatterOEmbed.module(148): ProcessWire\DatabaseMysqli->__call('query', Array) #3 xx/site/assets/cache/FileCompiler/site/modules/TextformatterOEmbed/TextformatterOEmbed.module(247): TextformatterOEmbed->getEmbedCode('https://www.ins...') #4 xx/core/Textformatter.php(60): TextformatterOEmbed->format('<p></p>\n<ul>\n<l...') #5 xx/modules/Fieldtype/FieldtypeText.module(94): ProcessWire\Textformatter->formatValue(Object(ProcessWire\Page), Object(ProcessWire\Field), '<p></p>\n<ul>\n<l...') #6 xx/wire/modules/Fieldtype/FieldtypeTextarea.module

  6. Thanks you so much for the insightful replies, @owzim and @AndZyk. Of course I tried to find something with PW forum search, but was not happy with the results I found.

    For my production site has active content creation and new content is stored in database all the time. My development environment is a snapshot of certain time in production, so it's content start getting outdated from the second I take the snapshot. 

    I looked promptly at @LostKobrakai's Migrator-module, but the use of it felt quite complicated, especially for newbie and for beta status. I hope no-one would not take this statement offending, but I feel sometimes tutorials and forum thread information require more indepth understanding of PW itself. As a newbie one is still trying to overcome the steepness of the learning curve. If one hits a wall, it may take plenty of time to overcome it. PHP environment is quite different from java or c#, so my coding and setup skills for the latest devops style coding is shallow.

    Maintaining PHP code, CSS and JS is a OK with Git, but how to move created pages from dev to prod is not that simple anymore. As @Michael Murphy pointed out, in another thread, one way is by exporting/importing fields and templates. But does it export the pages or content that I have created in the dev environment in to the fields?

    • Like 1
  7. I am running development server where I test and try the changes in fields and templates of ProcessWire. The php files are stored in git@bitbucket. 

    The part of managing changes and versions of php code itself via git is quite straightforward, as I presume we all know. However, I have not been able to come up with decent way of moving the changes in fields, templates, modules and settings from development to production other than repeating them, step-by-step, manually in production environment via the admin back-end.

    Perhaps there is more sophisticated way of transferring these changes?

  8. How could I implement an expiration date for user? It's a kind of sleak version of subscription management, but my purpose is to limit user to access page as long as he pays for the service. What'd be the easiest solution for proof of concept other than managing them by hand? 

    Thanks in advance.

  9. Our new site is built on the magnificient PW. Niinu Agility Sport is leading dog trainer in Finland with top of the notch quality of coaching. Our target, when choosing PW as the platform, was to find a tool that would help us maximise the level of automatisation in enrollment to our classes, billing and capacity management processes. Along the way we found we could improve so many other areas in our services that directly affect our end-user statisfaction. This was not the first project for us to use PW as the platform, but is absolutely the most effective one. Previous ones have mainly been "just websites". Now we have been able to integrate PW into the core of our business. Thus, able to leverage to level of our execution to compeltely new level.  

    Most of the eyecandy for us lies in the back-end where we are able to drastically reduce the amount of manual labour in the course management and yet improve and enhance our customer experience and our ability in customer nurturation.

    I'm not sure if we could thank to mr. @apeisa enough for his ingeniousness and efforts in this project and in helping us to accomplish all of this. Outcome exceeds our expectations in every aspect, thanks to the incredible flexibility of PW as platform.

    https://niinuagilitysport.com

    • Like 10
  10. Wow, thanks @szabesz! May I ask what problem with Let's Encrypt does this update solve? I've tested running PW site with LE SSLs' with both nginx and apache 2.4. Of course, the .htaccess is regarding to apache only. 

    LE _seems_ to be quite stable, for I do have a purchased SSL from Comodo, and have not had the need to change to "real" one for so far the LE certificate seemed to be very stable one. At least with latest versions of browsers. The only thing I've come up is problem with older Android browsers, and I am unsure if this issue has anything to do with my previous problem. A part of that problem was related to OWASP mod_security2, but not completely.

     

×
×
  • Create New...