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.
You are not logged in.
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
Thanks,
Jack
Offline
Hi Jack, if you haven’t already done so, visit the Upgrade Album Files link on the main Backlight admin page.
Offline
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
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
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
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
Rod,
They are enabled.
Yes Backlight 1 file. What needs changing? I think Daniel wrote the files for me.
Jack
Offline
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
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
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
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
Yes I am.
Offline
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?
Offline
Matthew,
I can confirm that I have have done all 3 of your items.
Still doesn't work as intended.
Thanks,
Jack
Offline
And what's the code you're using for your PHPlugin?
Offline
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
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
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
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
How can I post the file?
Offline
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
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
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
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
Note: The very similar script that Daniel provided to me a while back worked fine in Blacklight 1.
Jack
Offline
'?>' 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