close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Power CMS Power Gallery inclusion error

Thread began 4/14/2014 3:21 pm by kata387222 | Last modified 1/29/2015 9:36 am by Jason Byrnes | 2831 views | 13 replies |

kata387222

Power CMS Power Gallery inclusion error

Hi
I have installed Power CMS on my site and on pages that have a Power Gallery inclusion I am getting the following error:

Warning: opendir(/home/mindwork/public_html/otel/WA_Globals/galleries/ribbon_fullsize_lightbox/css/themes) [function.opendir]: failed to open dir: No such file or directory in /home/mindwork/public_html/otel/powergallery/admin_gallery/common/functions.php on line 490

I have been through the threads and seems that the functions.php file may need tweaking - Not sure what to though.

i am on DW CS6 and using Design Extender 1.1.7 and Databridge 1.1.9

See below for code with and without Power CMS added.

your help will be greatly appreciated.

Thanks Kata


Here is the code with Power CMS added to page with existing Power Gallery (this code is returning the error):

<body>
<h4>Curtain Side Bodies</h4>
<div class="galContainer">
<div class="galCopy"> <?php echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Vehicle Builds', 'Curtain Sides'); ?> </div>
<div class="galPlug">
<?php
$pg_id = '4';
$pg_theme = 'otel';
include('/home/mindwork/public_html/otel/powergallery/galleries/ribbon_fullsize_lightbox/index.php');
?>
<!--end galPlug--></div>
<br class="clearfloat" />
<!--end galContainer--></div>
<div class="clearfloat"> </div>
<?php WA_manageSEO(); ?>


</body>


Here is the Original Code prior to adding Power CMS where the gallery was working fine:

<body>
<h4>Curtain Side Bodies</h4>
<div class="galContainer">
<div class="galCopy">

<ul>
<li>Any length and width
</li>
<li>Timber decks; either Shiplap hardwood Balau, Calophylum or Heavy Hopea, Trans Tek, container ply 25 0r 28mm or just treated plywood
</li>
<li>Steel decks; either mild steel plate, corten plate or treadplate at what ever thickness required
</li>
<li>Load anchorage rails with hooks and or chain plates if required
</li>
<li>Lashing rings fitted into deck if required
</li>
<li>Flush mounted headboards lined with ply or steel on inside
</li>
<li>Roof support poles as required to suit body length (our own unique design)
</li>
<li>One piece aluminum roof
</li>
<li>T3 curtain tensioners
</li>
<li>Curtains to colour of your choice rated as per LTNZ requirements
</li>
<li>Pressed steel mudguards and OTEL embossed mudflaps
</li>
<li>Tail lifts, what ever brand/style you require
</li>
<li>Optional folding or removable internal side screens and rails
</li>
<li>All painted to your requirements</li>
</ul>
</div>
<div class="galPlug">
<?php
$pg_id = '4';
$pg_theme = 'otel';
include('/home/mindwork/public_html/otel/powergallery/galleries/ribbon_fullsize_lightbox/index.php');
?>
<!--end galPlug--></div>
<br class="clearfloat" />
<!--end galContainer--></div>
<div class="clearfloat"> </div>


</body>
</html>

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

kata387222

Here's the details. Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

i updated the powergallery/admin_gallery/common/functions.php file to fix the problem.

Sign in to reply to this post

kata387222

Thanks so much. Is it possible to tell me what the problem was and the change that was needed so I can fix myself in the future? Is this problem avoidable by doing something different?

Sign in to reply to this post

Jason ByrnesWebAssist

i added this code at line 2:

$GLOBALS['galabsLink'] = str_replace("/WA_Globals", "/powergallery", $GLOBALS['absLink']);


the code may be different if the power gallery files are installed to a different folder.

i then changed both instances of:
$GLOBALS['absLink']

in that file to:
$GLOBALS['galabsLink']

it is a conflict caused by both power gallery and Power CMS using the same variable to set the root, but power gallery needs to point to a different folder.

Sign in to reply to this post

kata387222

Thanks a lot, that clears it up.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

mick358555Beta Tester

Same Error Message, different result after modification.

Hi Jason, I get the same error message as this user but when I apply the same fix you offered I still get issues. Simply put if I put my Gallery code first and my CMS code next it displays correctly, if I place it CMS Code first followed by the powergallery code I get the ' [function.opendir]: failed to open dir: No such file or directory' error. This is the code I am using:

<!--This is the gallery -->

<?php
$pg_id = '1';
$pg_theme = 'Gaiety 01';
include('/home/fhlinux190/g/gaietyballoons.co.uk/user/htdocs/powergallery/galleries/grid_lightbox/index.php');
?>

<!--This is the CMS area for the descriptor -->

<?php
include('/home/fhlinux190/g/gaietyballoons.co.uk/user/htdocs/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Gallery Descriptors', 'Airwalkers', false);
?>

This works albeit the CMS dialog is displayed after the gallery, I want the CMS dialog to precede the gallery, but reversing the code thus:

<!--This is the CMS area for the descriptor -->

<?php
include('/home/fhlinux190/g/gaietyballoons.co.uk/user/htdocs/WA_CMS/addtosite.php');
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Gallery Descriptors', 'Airwalkers', false);
?>

<!--This is the gallery -->

<?php
$pg_id = '1';
$pg_theme = 'Gaiety 01';
include('/home/fhlinux190/g/gaietyballoons.co.uk/user/htdocs/powergallery/galleries/grid_lightbox/index.php');
?>

This gives the error.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...