Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2018-09-10 14:17:55

phil
Member
Registered: 2012-11-28
Posts: 65

having trouble with ziparchive

i get the following error message on installation of backlight 2...

it shows up immediately after i click install "backlight 2"

Warning: ZipArchive::extractTo(../modules/module-pages/PagesDataModel.php): failed to open stream: Permission denied in /var/www/backlight/installer/lib/Client.php on line 72
module not found at: ../modules/module-publisher

Any insights?

thanks
Phil

Offline

#2 2018-09-10 14:29:59

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: having trouble with ziparchive

Hi Phil, are you upgrading or installing a new site?  Can you try setting the permissions on the backlight/modules directory to the same permissions you have set to the backlight/data directory, and then click "Install Backlight 2" again?

Offline

#3 2018-09-10 14:56:51

phil
Member
Registered: 2012-11-28
Posts: 65

Re: having trouble with ziparchive

so i chowned my /var/www directory. then reinstalled backlight 2 as root. voila things appeared to be working..   BUT .. I didn't get a quick settings page and it  now looks like there is an issue with my web pages. pkemp.com is the website URL... can you take a look and see what is going on..

Offline

#4 2018-09-10 14:58:55

phil
Member
Registered: 2012-11-28
Posts: 65

Re: having trouble with ziparchive

oh to answer your first question. it's an upgrade..

Phil

Offline

#5 2018-09-10 15:01:26

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: having trouble with ziparchive

Hi Phil, it probably wasn't necessary to set permissions on your entire www directory.  Just backlight/modules (and possibly backlight/data and your galleries directories).  To fix that error, log into Backlight and go to the Backlight Modules page, then install the Okapi Modules.  That's the older generation of web engines that Backlight does not install by default.

Offline

#6 2018-09-10 15:08:18

phil
Member
Registered: 2012-11-28
Posts: 65

Re: having trouble with ziparchive

that sort of helped with my landing page. the format is all wrong. in addition when i try to display other pages, I get this error..

Call to undefined method CartHelper::isDevelopment()|#0 /var/www/backlight/publisher/application/init.php(8): GenericApplicationHelper->getLocaliser(Object(ApplicationConfigManager)) #1 /var/www/backlight/framework/init.php(144): require_once('/var/www/backli...') #2 /var/www/Europe-2017/europe-2017/001-budapest/lib.php(56): require_once('/var/www/backli...') #3 /var/www/Europe-2017/europe-2017/001-budapest/index.php(8): require_once('/var/www/Europe...') #4 {main}|URL: /Europe-2017/europe-2017/001-budapest/index.php

what has happenned? are there update issues??

Phil

Offline

#7 2018-09-10 15:23:55

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: having trouble with ziparchive

Hi Phil, have you missed any steps in the installation instructions?  backlight/publisher, amongst other directories, should be removed.  Also, make sure to visit the Backlight landing page and clicking Update Album Files.

Offline

#8 2018-09-10 15:34:04

phil
Member
Registered: 2012-11-28
Posts: 65

Re: having trouble with ziparchive

i followed the steps on

http://backlight.theturninggate.net/doc … tion_setup

but i have not gone through the rest of the 'getting started with backlight 2'... is that where one is told about the directories to be deleted? and the update albums, which i did find. the landing page and all the photo page formats are not correct. where do i go to update those?

thanks for your help, but i feel like I'm missing a whole lot of documentation on how to upgrade to backlight 2 from previous versions.... are there special links for this?

Thanks again for your help.
Phil

Offline

#9 2018-09-10 15:47:27

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: having trouble with ziparchive

Hi Phil, it looks like we need to make this documentation more apparent.  To upgrade an existing site, follow these steps (which also encompasses the steps for a fresh install):

http://backlight.theturninggate.net/doc … acklight_2

You should be able to retrospectively go back and fill in the gaps, such as the folder removal.

Offline

#10 2018-09-10 16:07:52

phil
Member
Registered: 2012-11-28
Posts: 65

Re: having trouble with ziparchive

OK, went back and cleaned up the backlight directory, reinstalled backlight 2 and followed the update instructions. i still get an error when i try to access the site....

Something went wrong
Unable to find module with id standard-page. Make sure this module is installed under backlight/modules/. in EngineFactory.php on line 95

any thoughts?
Phil

Offline

#11 2018-09-10 16:10:48

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: having trouble with ziparchive

Log into Backlight Admin, visit Backlight > Backlight Modules then install Okapi Modules.  They're the old modules that are not installed by default.

Offline

#12 2018-09-10 16:12:08

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: having trouble with ziparchive

Did you install the Okapi modules?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2018-09-10 16:25:55

phil
Member
Registered: 2012-11-28
Posts: 65

Re: having trouble with ziparchive

yes, i was re-installing all and it didn't pick up the different modules, so i went in and reinstalled each separately. now the photos are showing up but the landing page format is a list of options and not formatted properly. I wonder how the original landing page got lost.

check out the formatting... no bullets with pull down menus.. just a list ... pkemp.com

Phil

Offline

#14 2018-09-10 17:12:35

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: having trouble with ziparchive

Hi Phil, can you check that there is a file .htaccess under the backlight/ folder?  If not, this needs to be copied from backlight/ within the Installer zip file.

Offline

#15 2018-09-10 22:20:19

phil
Member
Registered: 2012-11-28
Posts: 65

Re: having trouble with ziparchive

.htaccess is there..

jasper-pi:backlight(220)ls -la
total 44
drwxrwxrwx   6 www-data phil  4096 Sep  9 23:54 .
drwxrwxrwx 196 www-data root 12288 Sep  9 23:54 ..
-rw-r--r--   1 root     root  1713 Sep  9 20:58 .htaccess
drwxrwxrwx   6 www-data phil  4096 Sep  9 23:54 custom
drwxrwxrwx   7 www-data phil  4096 Sep  9 23:54 data
-rw-r--r--   1 root     root  1994 Sep  9 20:58 env.php.skel
-rw-r--r--   1 root     root   594 Sep  9 20:58 index.php
drwxrwxrwx   7 root     root  4096 Sep  9 09:05 installer
drwxrwxrwx  18 root     root  4096 Sep 10 00:20 modules
jasper-pi:backlight(221)

Cheers
Phil

Offline

#16 2018-09-10 22:40:11

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: having trouble with ziparchive

Hi Phil, for some reason it's not working.  As an example, this URL should load a stylesheet:

http://pkemp.com/backlight/publisher/gallery/stylesheet/style/6

The .htaccess file under backlight/ is meant to map the above request to this:

http://pkemp.com/backlight/?m=publisher&c=gallery&a=stylesheet&p1=style&p2=6

  which *does* load the stylesheet correctly.

Is this your own server that you're managing?  If so, make sure that mod_rewrite is enabled and AllowOverride set to All.  If not, then can you provide me with FTP access via Email so that I can look into this?

Offline

#17 2018-09-10 22:53:33

phil
Member
Registered: 2012-11-28
Posts: 65

Re: having trouble with ziparchive

it was the allowoverride ... i enabled it for /var/www and so far everything looks good....

I think, Finally!

Thanks Ben.
Phil

Offline

Board footer

Powered by FluxBB