Hello, I have recently installed Typesetter on a Raspberry Pi 2. I don't know much about web stuff (which attracted me to Typesetter in the first place). I followed the "how to make a web server" guide on Pi-My-Life-Up: https://pimylifeup.com/raspberry-pi-web-server/ but I sorta skipped a step. While googling what version of PHP the Pi would use I thought to my self that v5 sounded old compared to v7 that was out now. So i installed v7 using the guide found at: https://www.stewright.me/2016/03/turn-raspberry-pi-3-php-7-powered-web-server/ it argued that 7 would make things run faster on the under-powered Pi board. So I thought why not? If it installs then great :)
The installation went well enough, running the install page said that everything had passed except the last item on the list (something about images) which said it passed since it didn't have anything to say "fail" in the requirements column for that item. I followed the install guides suggestion of deleting the installation php file for added security and then went on my merry way of making an intranet page for my colleagues for references, forms, employee directory Word document, etc.
After making various menus and adding text content the page was really starting to become a thing. I was quite pleased at how easy Typesetter was to use and how a spoon like myself could figure out how to add content and not be completely baffled. That was, until i tried to add an image. :(
As you can see, the images look broken, the files will upload to the server, but then they aren't read? I noticed the same problem when trying to use the Gallery, but it would give me a yellow bar message about an image error and then demand to reload the page because it couldn't save the edits. Where should I look to find a solution to this? httpaccess? apache? php version fail? I don't even know where to start in order to search to solve this issue myself. I hope I explained the situation well enough and I hope this issue will help other novice users like myself if they run across it in the future. Thank you for your time and assistance, its much appreciated.
Hi goney3 and welcome to the forum,
Your issue has most likely to do with the graphics library.
Since you installed apache+php using
apt-get install apache2 php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-xmlrpc libapache2-mod-php7.0
the 'gd' graphics library should be present. So...
Yep, you were absolutely correct: php7.0-gd somehow didn't get installed. Images now upload and appear correctly now! THANK YOU!!!
1) I can copy URL and get: http://##.###.##.###/data/_uploaded/image/Tyler/small_logo.png which does indeed load in my browser. 2) its 375x187 pixels, I thought that would be small enough? It doesn't seem to generate a thumbnail in the "select image" area. They just show up with the torn-photo placeholder for it being broken. Interestingly enough, I can get it to post the broken image when using "Editable Text & Image Gallery" (in the screenshot I posted earlier), but if I try to just use Image or Editable Text & Image I get a yellow bar error message when it tries to autosave: "Oops, that didn't work, please try again. (Couldn't create image )" Thank you for helping me with this, i really appreciate it.