Jump to content


Photo
- - - - -
Resolved

Error Warning: sprintf() [function.sprintf]:



  • Please log in to reply
17 replies to this topic

#1 benkersen

benkersen

    Member

  • Members
  • 24 posts

Posted 04 September 2012 - 09:48 AM

Hi. I am getting the following error: Warning: sprintf() [function.sprintf]: Too few arguments in /home/wonderd/public_html/wp-content/themes/pagelines/includes/class.shortcodes.php on line 1067 On this page:

Please Login or Register to see this Hidden Content

Any idea why that could be? Thanks in advance!

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 04 September 2012 - 02:22 PM

When I view your site, I don't actually see the error, but I see the shortcodes are displaying instead of actually working. Can you please open that file, class.shortcodes.php in the pagelines/includes directory and post the code on line 1067?

#3 benkersen

benkersen

    Member

  • Members
  • 24 posts

Posted 04 September 2012 - 10:35 PM

Hi. I should have mentioned that I am in the process of switching from the Platform Pro theme to Pagelines, an have been working on the site at night - switching back to Platform Pro during the day until I can get all the pages working the way we want them before going live with Pagelines. This said, that error only happens when Pagelines is activated. At any rate, the code at line 1067 in class.shortcodes.php is: $out = sprintf( '
'.do_shortcode( $content ).'
',$atts['name'] ); I am not finished updating all the pages' shortcodes, but so far, the accordions are working on some other pages, but I am getting this error on these pages with Pagelines activated:

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content

Thanks in advance for your help.

#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 05 September 2012 - 09:01 PM

Okay, I'd like you to go to www.pagelines.com/launchpad, login, download PageLines Framework from your account to your local machine. Unzip it. You'll find a folder called "pagelines". Save to the desktop. FTP into your site. Navigate to wp-content/themes. You will see a folder there called 'pagelines'. Do not delete it. Upload the desktop folder called "pagelines" so that it overwrites the existing folder. When asked whether you should overwrite, say yes to all. That should resolve any files that might have been inadequately uploaded. It will not alter any content or custom css you've added, but, if you modified core files (which is a big no-no) those will be fixed. Check to see if you still get the message. If you do, then we may have a plugin conflict going on. If not, then the issue's resolved.

#5 benkersen

benkersen

    Member

  • Members
  • 24 posts

Posted 05 September 2012 - 11:14 PM

Hi.
Thanks for your reply.
I uploaded a fresh copy and am still getting the errors.
I also tried deactivating all plugins, refreshing the affected pages and am still getting the error.
On this page :http://www.wonderdogs.ca/school-for-dog-trainers/career-benefits/ I am not even getting the accordions displayed. It seems all text is hidden. But the error is still there. I have attached a screenshot.

Please let me know if you need any more info.. I am anxious to get this fixed.

Thanks so much.

Posted Image

#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 06 September 2012 - 12:05 AM

Ben, do you have something in the template or on the post/page where that error is showing up? Is this a section or shortcode being used there?

#7 benkersen

benkersen

    Member

  • Members
  • 24 posts

Posted 06 September 2012 - 01:50 AM

Hi.
It seems now that the error comes up and the accordions disappear on the page when I add the closing [/pl_accordion] tag. If I leave the closing tag out, the accordions work, but the don't close the previous tab when you click a new one. I have set the page up like this for now so you can see what I am talking about.
There is a clip of the opening code on the page:

Please Login or Register to see this Hidden Content


I have followed the directions on the /tools page for the accordions, opening and closing the same way all the way down the page. This works on other pages on the site, just not a couple of them.

Hope this information helps. Thanks a lot.

#8 Danny

Danny

    Is Awesome!

  • Moderators
  • 16289 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 06 September 2012 - 06:07 AM

Hi, Can you paste the code that is causing the error on these certain pages to our paste service please. The code above you added to your post, is not complete.

Please Login or Register to see this Hidden Content



#9 benkersen

benkersen

    Member

  • Members
  • 24 posts

Posted 06 September 2012 - 06:20 AM

Hi. Thanks for the note. I have pasted the pages' code using paste service. Please let me know what you see? Thanks!

#10 Danny

Danny

    Is Awesome!

  • Moderators
  • 16289 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 06 September 2012 - 06:27 AM

Hi, Can you provide a link to the code please.

#11 benkersen

benkersen

    Member

  • Members
  • 24 posts

Posted 06 September 2012 - 06:39 AM

oops. yup here you go:

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content

Please Login or Register to see this Hidden Content

thanks!

#12 Danny

Danny

    Is Awesome!

  • Moderators
  • 16289 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 06 September 2012 - 07:00 AM

OK, I have yet to check this completely, but from taking a quick look

Please Login or Register to see this Hidden Content

<=== You're not using the correct code you haven't closed the Accordion using - [/pl_accordion]

Please Login or Register to see this Hidden Content

<=== From the looks of it you have errors in your code, please review these erros.

Please Login or Register to see this Hidden Content

<=== You're not using the correct code you haven't closed the Accordion using - [/pl_accordion]

Please Login or Register to see this Hidden Content

<=== You're not using the correct code you haven't closed the Accordion using - [/pl_accordion]

#13 benkersen

benkersen

    Member

  • Members
  • 24 posts

Posted 07 September 2012 - 12:48 AM

Hi. Yes I know I havent closed the accordion on those pages. I didn't, because when I do, the accordions break altogether, and don't show up on the page at all. You can see what I mean here: I have now closed the accordion on this page:

Please Login or Register to see this Hidden Content

As for the code errors, I don't see where there are errors? Which lines do you see errors on? Thanks so much!

#14 Danny

Danny

    Is Awesome!

  • Moderators
  • 16289 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 09 September 2012 - 08:38 AM

HI, I have already informed you that your accordion code is not correctly written, please review the code for mistakes. Once you have resolved these errors, the accordion will work correctly. Regarding the error message - Warning: sprintf() [function.sprintf]: Too few arguments in /home/wonderd/public_html/wp-content/themes/pagelines/includes/class.shortcodes.php on line 1067 Have you made any changes to the class.shortocdes.php file at all ?

#15 benkersen

benkersen

    Member

  • Members
  • 24 posts

Posted 05 October 2012 - 08:57 PM

HI.
Sorry for the late reply. Have been out of town.
I am still getting the error message on these pages:

Please Login or Register to see this Hidden Content


Please Login or Register to see this Hidden Content


Please Login or Register to see this Hidden Content

**(the entirety of the content on this page is not being displayed; instead I am getting that error)

Please Login or Register to see this Hidden Content


Any insight would be greatly appreciated, as this is driving us crazy.

Thanks in advance!!

#16 Danny

Danny

    Is Awesome!

  • Moderators
  • 16289 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 10 October 2012 - 10:12 AM

Hi,

I have just noticed that you're using PageLines Framework 2.2.5, therefore can you perform a backup and update to the latest version which is 2.3.2. Once you have updated, see if the error has been resolved.

**Remember to back up site.

#17 benkersen

benkersen

    Member

  • Members
  • 24 posts

Posted 05 November 2012 - 01:36 AM

Thanks for the note.
I updated the framework and it seems to have fixed the problem.
The errors are gone and the accordions work now.
Thanks again!

#18 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 05 November 2012 - 04:54 PM

The topic was marked as resolved.





Also tagged with one or more of these keywords: Resolved