modifiedcontent
Members-
Posts
286 -
Joined
-
Last visited
Everything posted by modifiedcontent
-
Thanks justb3a. I will use the module as is. 1. To change the subject line of the emails sent to the user I had to edit the the module file. Is that correct or did I miss an edit option in the admin area somewhere? 2. There are ways to turn labels into placeholders via CSS... https://css-tricks.com/float-labels-css/ ...but they require <label> to come after <input> or/and have 'required' in the input tag. This would also require editing the module - and I can't figure out where/how.
-
Unparsed code on front-end pages
modifiedcontent replied to modifiedcontent's topic in General Support
You're right matjazp, missed one more <? in the footer. Apparently you can also enable short tags support by adding this line to .htaccess: php_value short_open_tag 1 -
Unparsed code on front-end pages
modifiedcontent replied to modifiedcontent's topic in General Support
After fixing what I could, I still get this bit at the bottom of each page with front-end editing enabled: editable()) { echo "EDIT"; } ?> So I guess there is even a bad php tag in that module somewhere. -
Unparsed code on front-end pages
modifiedcontent replied to modifiedcontent's topic in General Support
Thanks! Is there a way to enable short_tags via command line, 'sudo something'? I'd still prefer to use <? ?> instead of <?= ?> To be clear, I should search/replace as follows? <? echo becomes <?= <? becomes <?php -
Unparsed code on front-end pages
modifiedcontent replied to modifiedcontent's topic in General Support
Not consciously... ;-| Could bad syntax in a template really bring down the entire front-end? I have this in my home page template: <div class=left><? echo "<p>{$page->body}</p>" ?></div> That is wrong on many levels... Not sure how that got there. -
Unparsed code on front-end pages
modifiedcontent replied to modifiedcontent's topic in General Support
PHP should be installed properly. The installation procedure gave no signs of problems and the admin area works as normal. -
Has anyone installed Processwire on Amazon EC2?
modifiedcontent replied to modifiedcontent's topic in General Support
It works with that directive added. Thanks flydev! So the formula to install Processwire on Ubuntu on Amazon EC2: sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install apache2 sudo apt-get install lamp-server^ sudo apt-get install php7.0-zip sudo a2enmod rewrite sudo apt-get install phpmyadmin sudo ln -s /usr/share/phpmyadmin /var/www/html/ sudo adduser ubuntu www-data sudo chown ubuntu:www-data -R /var/www sudo chmod 2775 -R /var/www sudo find /var/www -type d -exec chmod 2775 {} + sudo find /var/www -type f -exec chmod 0664 {} + sudo service apache2 restart Then add this directive to your VirtualHost in /etc/apache2/sites-available/000-default.conf : <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> And then it should all work. ...still have to see it working with my custom exported profile, but that is my problem. (Edit: that was caused by syntax errors in my custom templates, unsupported use of short_tags.) -
Has anyone installed Processwire on Amazon EC2?
modifiedcontent replied to modifiedcontent's topic in General Support
I am trying to install an exported custom profile that I have installed on regular web hosting without problems. I will try another install from scratch with a freshly downloaded Processwire with standard blank profile now. I had also used 3.0.52 dev. Using 3.0.42 master now. Will report back... Edit: Reinstalled, strictly following the list of commands from my previous post, with fresh Processwire + standard blank profile. Everything looked good and normal. Homepage now shows OK - just the word Home - but 'requested URL /admin/ was not found on this server'. WTF?! -
If I get unparsed code like this on my homepage: What does that mean? What is PW missing? What misconfiguration would produce this result? And the admin area works as normal. I am troubleshooting an attempt to install Processwire on Amazon EC2, but suspect this could be an unrelated issue.
-
Has anyone installed Processwire on Amazon EC2?
modifiedcontent replied to modifiedcontent's topic in General Support
Thanks for the response matjazp. Nothing interesting in /var/log/apache2/error.log. Only this repeated many times: But that is just me restarting apache2 after changes. The four step permission settings on that link look interesting. I'll try that. Reinstalling now. Will report back... Edit: After reinstalling from scratch, ended up at the same point: normally working PW /admin, but unparsed crap on the front end. The four step permission settings were no good, only seemed to make things worse. Here is the list of commands I have so far: sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install apache2 sudo apt-get install lamp-server^ sudo apt-get install php7.0-zip sudo a2enmod rewrite sudo apt-get install phpmyadmin sudo ln -s /usr/share/phpmyadmin /var/www/html/ sudo adduser ubuntu www-data sudo chown ubuntu:www-data -R /var/www sudo chmod 2775 -R /var/www sudo find /var/www -type d -exec chmod 2775 {} + sudo find /var/www -type f -exec chmod 0664 {} + sudo service apache2 restart I think this sorts out the permission/access issues, but that still hasn't fixed my unparsed front-end pages. What would cause that? -
Has anyone installed Processwire on Amazon EC2?
modifiedcontent replied to modifiedcontent's topic in General Support
Thank you again flydev! I now get into processwire's /admin for the first time on Amazon. After a successful login it shows the following: After adding that the admin area works fine, but the homepage still gives this: I also had to chown back and forth between ubuntu and www-data to be able to edit files through FTP. Default user ubuntu is supposedly a member of the www-data group, but is still denied editing permission of folders/files owned by www-data. So PW admin area works great and all front-end pages spit out unparsed crap: But no more 500 server errors. Edit: After doing this: sudo chown -R www-data:www-data /var/www Homepage says: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Error has been logged. Admin area is equally effed. Attempt to repair with chown ... /var/www/html or /var/www/html/ have no effect. PW /admin is back to 404 Not Found. Homepage and other pages have 500 internal server errors. -
Has anyone installed Processwire on Amazon EC2?
modifiedcontent replied to modifiedcontent's topic in General Support
Great. Thank you flydev! This at least gives me stuff to try, knowing that it is possible. After adding that FollowSymLinks section to 000-default.conf, both /admin and the PW homepage give HTTP Error 500. That is kind of progress from the 'not found' I got from /admin earlier. Using /var/www/html or /var/www/html/ instead of /var/www/ made no difference. Also doing sudo service apache2 restart after these changes doesn't fix the problem. Should 000-default.conf look like this? I guess I now have to reinstall the whole thing following your exact setup. :-/ Or is there anything else I could try? Are there error logs anywhere with more clues about the HTTP 500 errors? MariaDB is an alternative for InnoDB? How would I change/update that, via phpmyadmin or putty? The errors don't look db related though. Edit: I only now noticed that the install files were still on the server. I have manually deleted them, but that still hasn't fixed the 500 errors. What does that mean, that the install files were not automatically removed and the installer did not give any alerts about it? What does the server require to remove the install files? What is missing in my setup? Edit2: If I replace Processwire's index.php with a test index.php with some plain text, the browser has no problem displaying it; no server errors. So there is something in Processwire's index.php that my Ubuntu/AWS installation can't handle. What could that be? PHP is installed. The install process gave no alerts for missing scripts etc. Edit3: Trying to remove PW to reinstall, I had to change permissions on three folders/files in /site/assets to be able to delete them. Their ownership was set to a www group, not the default ubuntu user. I have seen two different instructions to set permissions: sudo chown -R ubuntu:ubuntu /var/www/html sudo chmod -R 755 /var/www/html Or sudo adduser ubuntu www-data sudo chown -R www-data:www-data /var/www/html sudo chmod -R g+rw /var/www/html Which one should I use? I think I used both, "just to make sure"... For my next attempt I'll try just the first one and for /var/www/, along with that section in 000-default.conf -
Thanks for the response Ivan Gretsky It could very well be unrelated to PW. I don't necessarily get the 'ckeditor.js failed to load' pop-up when I try to use front-end editing. I think I get that every now and then when I click away from a page with any ckeditor; I have the impression ckeditor loads late/slow. When I try to use front-end editing, by double-clicking on editable text, I sometimes get the toolbar, sometimes not. Usually I have to fiddle about with it a bit, click Cancel and try again, and then the toolbar finally shows up. I think the front-end editing module inserts this: <script src="/wire/modules/Jquery/JqueryUI/JqueryUI.js"></script> But after a bunch of other javascript. Shouldn't jQueryUI come first? I also see typeof jQuery.ui == 'undefined' just above the jqueryui.js insert. Does that mean it can't find it? Is there a blunt way to force ckeditor to load, maybe by placing <script>ckeditor.replace('something')</script> in the footer?
-
New blog post: Working towards a new admin theme
modifiedcontent replied to ryan's topic in News & Announcements
I thought Reno was going to be the new admin theme. Or that the new admin theme would be based on Reno. What happens to Reno? Will the new admin theme work better on mobile? In particular getting the Edit and View etc buttons to show up. -
Getting Compile statement written to top of front end pages
modifiedcontent replied to Bill C's topic in General Support
Bill C, what caused your problem? I get this, compile statement on the homepage, when I try to install Processwire on an Amazon EC2 instance/virtual server. -
Has anyone installed Processwire on Amazon EC2?
modifiedcontent replied to modifiedcontent's topic in General Support
@ Sérgio, I am not going to host Wordpress - cough, spit. I have seen those tutorials. I know how to install a LAMP server on Amazon EC2, to the point where I can go through the installation procedure of any PHP script without problems, including Processwire. But the result is fatal server errors and pages that can't be found. So my question was very specific; has anyone successfully installed Processwire on AWS? @ LostKobrakai, you'd 'imagine ProcessWire should run on any Linux derivate available to EC2'. Have you done it? Do you know anyone who has? I will try one more time in an ultra basic/clean Ubuntu on AWS instance and report back with more details on the errors. Edit: OK, after a seemingly flawless installation procedure on Ubuntu/Amazon EC2 - 'Use The Site!' - on View Site I see this in the browser: Login to Admin gives me a 404 Not Found; 'The requested URL /admin/ was not found on this server'. When I try the homepage again after restarting Apache, I get this 500 error: Any ideas what would cause this? -
Has anyone installed Processwire on Amazon EC2?
modifiedcontent replied to modifiedcontent's topic in General Support
I suspect access rules and file permissions etc. is what is messing up the PW install, but what exactly? How to fix it? Has anyone done it? There is a bunch of stuff in the .htaccess file that may or may not cause server errors on cloud hosting. I tried commenting lines out and in, but there could be endless combinations of possible changes. He has some kind of credit on Amazon AWS that he doesn't want to let "go to waste". If I can't make it work on Amazon EC2, he wants me to make a static html site or "host it on Shopify", because "that is a CMS as well". He refuses to consider any other type of hosting. I am kinda stuck in this job at the moment... -
Has anyone installed Processwire on Amazon EC2?
modifiedcontent replied to modifiedcontent's topic in General Support
Thanks for the responses. Ivan Gretsky, I tried Bitnami's demo. It installs basic profile PW. I couldn't FTP into their Amazon instance. I want to be able to install a custom exported PW profile. And Bitnami probably isn't free, is it? BitPoet, I have done chown'ing the htdocs folder etc., I think. I am able to FTP my files to the folder. My latest attempt was on a Ubuntu instance. That fixed a lot of small issues I had with Amazon Linux, including the site-profile renaming issue. The PW install process now looks completely normal and healthy. I can see the database get created in PHPMyAdmin. But then after "successful install", when I try to go to the site and admin, I get unparsed code, fatal server errors and page not found etc. Laravel looks interesting, but again, not free. I have a client who insists on using Amazon EC2, because he has some kind of promo credit. He is clueless about the technical implications. He wants me to make the site static html or "host it on Shopify" if I can't get it to work. LostKobrakai, I don't want to host on Amazon EC2. Any regular shared web hosting would do fine for this purpose. But my client thinks "cloud" - waving fingers... - is magic and that using Amazon AWS makes him a tech visionary. What makes installing Processwire on Amazon EC2 so hard? Why would I need other services like Bitnami or Laravel to make it work? Is Nginx an Apache alternative? I thought you could install Nginx on Apache? Or is it one or the other? I came across Nginx installing LAMP on Ubuntu on Amazon EC2. Confused if I should install it or not. So far in my experience it doesn't. Has anyone done it? On a regular Amazon EC2 instance, without any third party helpers or weird work-arounds? -
Is Amazon EC2 a docker-compatible system? Could I use this to get Processwire to work on Amazon EC2?
-
Has anyone successfully installed Processwire on an Amazon EC2 instance/virtual server? Which configuration works; Amazon Linux or one of the other flavors? How do you get file permissions and the database working? Which lines in .htaccess cause problems on Amazon AWS? What are the pitfalls to watch out for? Why can't I get it working...? The first problem I run into is an error message that the installer doesn't have write access and that I should manually rename the 'site-myprofile' folder to 'site'. Attempt to chmod all the files and folders to 777 don't seem to have any effect on that and some files do get written fine. But I keep ending up with inaccessable pages and fatal server errors. I am not asking you to solve my problem. I am curious what other people's experiences are with this. Can it be done or am I wasting my time?
-
Is there a way to force ckeditor.js to load? Maybe put something in the footer? It seems to be hit or miss in my installation. Not sure why. It is causing problems with front-end editing and other things. I also got an ugly pop-up once that 'ckeditor.js failed to load'.
-
All the suggested options give me: mysubdomainsite.maindomain.com The site works fine on mysubdomainsite.com; getting that to show up in navigation is my problem. Where is httpRoot defined? Can I edit it somewhere? Or is there a httpHome that is different from httpRoot? Another dumb question from me...
-
PageFrontEdit would be perfect to use in production, but I see the module is still on version 0.02. Is it actively developed? When it works it is perfect, but the edit toolbar doesn't always show up. Chrome seems to work best, but in Firefox and IE/Edge I only get the save and cancel buttons and then when you try to save changes you get an ugly error pop-up 'No changes to save'. Has anyone else seen this? Is it a known problem? Maybe a js/jquery conflict? Should I install other editors - if that is possible? And is it supposed to work on mobile? Double tap? Or maybe just not on my crappy phone... Edit: I have now seen the toolbar show up on IE/Edge, but it is hit or miss. When it doesn't show up and you click cancel and try again, you get the toolbar on the second attempt. Is there a way to make sure the toolbar loads? Move javascript to another place?
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
modifiedcontent replied to ryan's topic in Modules/Plugins
This module sort of solves the video embed problem - thank you! - but... 1. It doesn't work in combination with HTML Entity Encoder? 2. You lose all YouTube embed customization options. Normally I add the following to the iframe embed url: ... ?rel=0&showinfo=0&autohide=1&wmode=transparent&modestbranding=1&color=white That removes unnecessary stuff and makes the video look less youtubey. Is there no way to do that in Processwire? Is there really no way to force PW or the text editor to just leave iframe code alone? At least from a few trusted sources. I have tried adding my customization to the module at return $embedCode. ..., but that doesn't work of course. It comes out like this: -
Could I use a plain html form with this module, instead of using the render() tag? I want to have more control over style etc. without having to use the complicated classes and markup overwrite methods. What would I have to add to a plain html form to let the module take care of processing the data? My html output of the tag looks like this: Could I just use a restyled version of this form? Minus the input with the TOKEN# I guess and plus some PHP magic? Another issue: The 'success' message replaces the form, but not the text I had added above the form. How can I make that added text disappear/go display:none along with the form? If I could use plain html, I could just include the intro within the form tag.