MD Portfolio Illegal String Offset Error

websitedev's picture
websitedev
Thu, 08/23/2018 - 11:35
#1
MD Portfolio Illegal String Offset Error

Hello,

We purchased another MD portfolio license for our new website.

Our server is running the latest Ubuntu and PHP, Ubuntu 18 and PHP 7.4.  I'm currently getting errors when I install the module.

Warning: Illegal string offset 'md_row_height_flag' in template_preprocess_md_portfolio_mdp_plugin_rows() (line 348 of /var/www/html/sites/all/modules/md_portfolio/templates/mdp/theme.inc).

Same errors for lines 352 and 360.

Unfortunately, I cannot give you access to our FTP.  Could you please provide me the newest version of the module?  The version that I downloaded from Envato/Themeforest is from 2015.

Also, is there a way to add direct URL links for the lightbox and juicyprojects templates?  For example, if someone goes to www.website.com/project1, it will automatically open the lightbox for that particular image on the page.

Thank you.

cindy's picture
cindy
Thu, 08/23/2018 - 23:08

Hello

Please check your email for the update

cindy's picture
cindy
Wed, 09/19/2018 - 06:04

Hello

Please follow these steps:
1: Open file: md_porfolio/templates/mdp/md-portfolio-mdp-plugin-rows.tpl, and add attribute: http://prntscr.com/kw5be4
2: Open file:md_porfolio/js/md_portfolio.js, and add the code:

// check hash
if(location.hash){
setTimeout(function(){
$(location.hash + ' .cbp-singlePageInline', context).trigger('click');
}, 300);
}

after Drupal.behaviors.initPortfolio.mdr_load_scroll(context, settings, id);  like this http://prntscr.com/kw5czc

Result: http://prntscr.com/kw5e8g
If you want to share porfolio item, you can add hashtag to the porfolio item's ID  
For example,  http://prntscr.com/kw5h8i

You should customize and style more to suit your liking 

cindy's picture
cindy
Thu, 09/27/2018 - 06:48

Hello

When you click on a portfolio item, the item's ajax get content will be called and added to current page without loading the whole page

We added hash tag for portfolio item without link. If you want to share portfolio item, you need to use page url with hash tag added.

Hash tag of portfolio item has format: 'portfolio-' + id of item

ex: portfolio-5

If you want to set node title to be hash tag, please open file md_portfolio/templates/mdp/md-portfolio-mdp-plugin-rows.tpl.php

and replace:

<?php print 'portfolio-' . str_replace(' ', '-', $row->nid);?>

with:

<?php print str_replace(' ', '-', $row->node_title);?>

Note:

+ Clear Drupal cache 

+ If you add hash tag to link after the page fully loaded, then you press "enter" but the page does not re-load or doesn't show porfolio inline or popup, then just click F5 to refresh or open a new tab 

+ If the portfolio item is not ready displayed on the page, the hash tag is not shown. You need to make portfolio item visible (you can increase the number of portfolio item on each page)

You can check our test video at localhost https://1drv.ms/v/s!ArRPkgVQNPYZg2-Z3faQtjZ4ZtqU

Also, please check your email for update

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.