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 2020-02-08 05:31:35

jackm
Member
Registered: 2013-01-22
Posts: 170

New problem after upgrading to Blacklight 2

I upgraded 3 of my 4 sites to Backlight 2. All 3 are OK.

The fourth, my main site, has problems. When I try to go to the galleries, I get this error.

Warning: require_once(./../backlight/framework/Framework.php): failed to open stream: No such file or directory in /home/jackphoto11/public_html/galleries/lib.php on line 48

Fatal error: require_once(): Failed opening required './../backlight/framework/Framework.php' (include_path='.:/opt/alt/php71/usr/share/pear') in /home/jackphoto11/public_html/galleries/lib.php on line 48

Really stuck as to what to do.

My site is

www.stuffbyjack.com

Thanks,

Jack

Offline

#2 2020-02-08 05:59:26

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

Re: New problem after upgrading to Blacklight 2

Hi Jack, if you haven’t already done so, visit the Upgrade Album Files link on the main Backlight admin page.

Offline

#3 2020-02-08 06:10:24

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

Hello Ben,

I did that after the upgrade.

However. I did it again, and cleared the template cache again, and now it seems to be working OK.

Still fiddling with the home page format. I lost my "ENTER" button.

I think it is a custom css?

I will keep looking.

Thanks,

Jack

Offline

#4 2020-02-08 06:34:25

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

Re: New problem after upgrading to Blacklight 2

If I remember correctly, the Enter button is just a menu item in the menu set that's assigned to the full screen page template being used for the home page.
So you probably need to assign the proper menu set to that page template.


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

Offline

#5 2020-02-08 07:32:17

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

It is a custom css and php file. I think they are in the right place, they don’t show when I enable the buttons in the template design settings.

I will keep trying stuff.

Jack

Offline

#6 2020-02-08 09:46:07

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

Re: New problem after upgrading to Blacklight 2

If you're using phplugins, have you enabled that in the page template?
Is this still a Backligth 1 site or is it Backlight 2?
If it's Backlight 2, you're old phplugins file won't work, it will need a bit of updating.
http://backlight.theturninggate.net/doc … _phplugins


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

Offline

#7 2020-02-08 09:55:17

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

Rod,

They are enabled.

Yes Backlight 1 file. What needs changing? I think Daniel wrote the files for me.

Jack

Offline

#8 2020-02-08 09:59:35

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

Re: New problem after upgrading to Blacklight 2

check out the link I included above; http://backlight.theturninggate.net/doc … _phplugins

You need to be using the latest phplugins-pangolin-sample.php file (from your download: backlight/custom/phplugins
And you'll need to change the function syntax. See the sample functions in the file to get a feel for it.


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

Offline

#9 2020-02-09 06:09:17

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: New problem after upgrading to Blacklight 2

Hi Jack,

Here is the link on how to upgrade phplugins from BL1 to BL2: http://community.theturninggate.net/vie … hp?id=8966

You only have one function to move from the old phplugins.php file to the new one. I think it should look like this:

function masthead_primary_bottom () { 
	echo '
		<div id="enter-field" ><a href="https://stuffbyjack.com/galleries/">ENTER</a></div>	
	';
} // end masthead_bottom

Your custom.css file should continue to work as is.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#10 2020-02-09 06:37:05

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

Daniel,

Thanks for the quick reply. I had tried a version of what you posted. I changed to your posted modification, but it still does not work.

Suggestions?

Thanks,

Jack

Offline

#11 2020-02-09 07:25:00

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

Re: New problem after upgrading to Blacklight 2

are you using the latest phplugins file (phplugins-pangolin-sample.php)


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

Offline

#12 2020-02-09 08:17:00

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

Yes I am.

Offline

#13 2020-02-09 08:29:22

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: New problem after upgrading to Blacklight 2

Hi Jack,

Just some general advice, and things you make sure you're doing.

1. Use the "pangolin" PHPlugins sample file. You can edit this directly, but I would recommend that you duplicate it and edit that.

2. If copying PHPlugins from Backlight 1, you will need to make some change to the syntax for this to work. I believe Rod and Daniel have covered this above.

3. In your page template, please ensure you have enabled PHPlugins and selected the correct file for the template to use.

All of this seems simple, I know, but it's also easy to skip a step. Can you please confirm you've followed up on each of these items?


Matt

The Turning Gate, http://theturninggate.net

Offline

#14 2020-02-09 11:38:19

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

Matthew,

I can confirm that I have have done all 3 of your items.

Still doesn't work as intended.

Thanks,

Jack

Offline

#15 2020-02-09 15:02:31

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: New problem after upgrading to Blacklight 2

And what's the code you're using for your PHPlugin?


Matt

The Turning Gate, http://theturninggate.net

Offline

#16 2020-02-10 01:32:19

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

The file contents;

function masthead_primary_bottom () {
    echo '
        <div id="enter-field" ><a href="https://stuffbyjack.com/galleries/">ENTER</a></div>   
    ';
} // end masthead_primary_bottom


?>

Jack

Offline

#17 2020-02-10 01:38:52

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: New problem after upgrading to Blacklight 2

Jack, you did add this code to the copied version of phplugins-pangolin-sample.php, didn't you?

You need to add this function below

// SET USER FUNCTIONS BELOW
// Some example functions are included below. Feel free to delete or modify unwanted functions.
// ****************************************************************************************************

For instructions see http://backlight.theturninggate.net/doc … _phplugins.

Do you have a link to the page where it should be visible?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#18 2020-02-10 02:19:07

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

Daniel,

I took the phplugins-pangolin-sample.php file, and added the content from my post from above, after the SET USER FUNCTIONS BERLOW line. Still doesn't work.

Page link is:  https://stuffbyjack.com

Jack

Offline

#19 2020-02-10 02:22:24

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

Re: New problem after upgrading to Blacklight 2

the code doesn't happen to be inside a commented out section?
It might help to see the the entire text of the file.


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

Offline

#20 2020-02-10 02:26:18

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

How can I post the file?

Offline

#21 2020-02-10 02:34:57

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

Re: New problem after upgrading to Blacklight 2

copy and paste the contents


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

Offline

#22 2020-02-10 02:45:49

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

Re: New problem after upgrading to Blacklight 2

Depending on what you want this to look like, there may an easier way by just using the menu and maybe some custom css. Take this, for example

https://backlight-2-100.barbeephoto.com/enter-menu/


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

Offline

#23 2020-02-10 02:52:44

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

In the renamed phplugins-pangolin-sample.php file, I added the 'function lines', as per Daniel's post. The stuff above and below this are is the same as in the phplugins-pangolin-sample.php file. I also tried this with all the "DELEAT THIS LINE" below my new ruction. Nothing works.

*    single_bottom
*      - return value ignored
*      - called after the single image display
*      - encompasses nothing; use to insert content following the single image display
*      - available only on single-image HTML pages for applicable album templates
*
*/

// SET USER FUNCTIONS BELOW
// Some example functions are included below. Feel free to delete or modify unwanted functions.
// ****************************************************************************************************

function masthead_primary_bottom () {
    echo '
        <div id="enter-field" ><a href="https://stuffbyjack.com/galleries/">ENTER</a></div>   
    ';
} // end masthead_primary_bottom


?>

/* DELETE THIS LINE
// Basic structure for a PHPlugins function
function _HOOK_() {
    echo '

    ';
    return false;
} // END /**/



/* DELETE THIS LINE
// Display the Backlight logo in pallet_top
function pallet_top_title()
{


Jack

Offline

#24 2020-02-10 02:55:29

jackm
Member
Registered: 2013-01-22
Posts: 170

Re: New problem after upgrading to Blacklight 2

Note: The very similar script that Daniel provided to me a while back worked fine in Blacklight 1.

Jack

Offline

#25 2020-02-10 03:10:44

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: New problem after upgrading to Blacklight 2

'?>' looks to be out of place. This should be removed since there is already one at the very end of the file.

I don't see your custom.css code referenced in your page either.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

Board footer

Powered by FluxBB