Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Weird Error After Ssl Installation

Question

Posted · Report post

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/justseti/public_html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

I keep getting the above error after the ssl installation. I've disabled w3total cache and Max cdn and https wordpress.

Still it's randomly pops up.

What could be going on?

Share this post


Link to post
Share on other sites

29 answers to this question

Posted · Report post

ok. so I'm so embarrassed. Once I validated my css and fixed 2 parse errors. I've not seen the error again! thanks for being patient and being the absolute most responsive support team in the world of Wordpress.

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites

Posted · Report post

and it's very random. basically whenever I save new css it happens.

Share this post


Link to post
Share on other sites

Posted · Report post

But I haven't gone live yet, so don't know.

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there, have you added any custom scripts or php/hooks to the functions.php or anywhere else on the site? What process did you follow for the SSL installation?

Some of the caching plugins have an option to dump the cache built into them, also make sure you cleared the browser cache.

Share this post


Link to post
Share on other sites

Posted · Report post

Hey. I did. but then i deleted what I was trying to do. This is how my base theme functions file looks:

<?php

// Setup -- Probably want to keep this stuff...

/**

* Hello and welcome to Base! First, lets load the PageLines core so we have access to the functions

*/

require_once( dirname(__FILE__) . '/setup.php' );

// For advanced customization tips & code see advanced file.

//--> require_once(STYLESHEETPATH . "/advanced.php");

//====================================================

//====================================================

// ABOUT HOOKS --------//

// Hooks are a way to easily add custom functions and content to PageLines. There are hooks placed strategically throughout the theme

// so that you insert code and content with ease.

// ABOUT FILTERS ----------//

// Filters allow data modification on-the-fly. Which means you can change something after it was read and compiled from the database,

// but before it is shown to your visitor. Or, you can modify something a visitor sent to your database, before it is actually written there.

// FILTERS EXAMPLE ---------//

// The following filter will add the font Ubuntu into the font array $thefoundry.

// This makes the font available to the framework and the user via the admin panel.

cache was cleared, etc. no luck.

Also - woke up to a 500 internal server error!

Share this post


Link to post
Share on other sites

Posted · Report post

ok. now it's back. whew.

Share this post


Link to post
Share on other sites

Posted · Report post

Great. now I deleted the https plugin and some other plugins from cpanel. which shouldn't be a problem, but now I have another host of issues.

In addition to the problem from above.

Warning: fopen(/home/justseti/public_html/wp-content/plugins/subscribe2/subscribe2.php) [function.fopen]: failed to open stream: No such file or directory in /home/justseti/public_html/wp-includes/functions.php on line 3306

Warning: fread(): supplied argument is not a valid stream resource in /home/justseti/public_html/wp-includes/functions.php on line 3309

Warning: fclose(): supplied argument is not a valid stream resource in /home/justseti/public_html/wp-includes/functions.php on line 3312

Warning: fopen(/home/justseti/public_html/wp-content/plugins/wordpress-https/wordpress-https.php) [function.fopen]: failed to open stream: No such file or directory in /home/justseti/public_html/wp-includes/functions.php on line3306

Warning: fread(): supplied argument is not a valid stream resource in /home/justseti/public_html/wp-includes/functions.php on line 3309

Warning: fclose(): supplied argument is not a valid stream resource in /home/justseti/public_html/wp-includes/functions.php on line 3312

Warning: fopen(/home/justseti/public_html/wp-content/plugins/yikes-inc-easy-mailchimp-extender/yikes-inc-easy-mailchimp-extender.php) [function.fopen]: failed to open stream: No such file or directory in/home/justseti/public_html/wp-includes/functions.php on line 3306

Warning: fread(): supplied argument is not a valid stream resource in /home/justseti/public_html/wp-includes/functions.php on line 3309

Warning: fclose(): supplied argument is not a valid stream resource in /home/justseti/public_html/wp-includes/functions.php on line 3312

Share this post


Link to post
Share on other sites

Posted · Report post

ok. now the above is fine! whew.

um. this site is possessed. lol.

can I send you a login for you to see what's happening.

the content is now flying in from left and right. It looks cool, but it's not what I'm going for. so bizarre!

Share this post


Link to post
Share on other sites

Posted · Report post

Ok. So . Looks like it's an SSL and cloudflare issue.

Are there any cloudflare / Max CDN issues with pagelines?

I tried max cdn yesterday, but it randomly messed up the css.

And now cloudflare is fast, but has issues with listening to my rule to ignore the ssl pages.

grrr.

Share this post


Link to post
Share on other sites

Posted · Report post

ok. it's final. cloudflare and ssl will not work unless i upgrade.

I've already paid for max cdn.

Do I need to tell them to ignore my css file?

Share this post


Link to post
Share on other sites

Posted · Report post

Still getting this: Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/justseti/public_html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

I keep getting the above error after the ssl installation.

Share this post


Link to post
Share on other sites

Posted · Report post

Try reuploading the framework, and in future dont just delete plugins via ftp, use the buttons in wp-admin.

Share this post


Link to post
Share on other sites

Posted · Report post

hey. ok. will do.

so i need to disable the entire framework and reload.

this problem : Still getting this: Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/justseti/public_html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

has been happening since yesterday since BEFORE i deleted the plugins

how do I reupload the framework without losing all of my customizations?

Share this post


Link to post
Share on other sites

Posted · Report post

you have been editing the files? which ones?

Share this post


Link to post
Share on other sites

Posted · Report post

no. i mean. all of my css. all of my posts, etc.

do i just delete the framework and reinstall ?

no other files have been edited.

But I have jigoshop installed and a lot of configurations have been saved.

g

Share this post


Link to post
Share on other sites

Posted · Report post

reuploading the files will not affect the settings that are stored in the db

Share this post


Link to post
Share on other sites

Posted · Report post

ok. to confirm.

I delete pagelines from the themes panel and then I reinstall?

Share this post


Link to post
Share on other sites

Posted · Report post

No dont delete anything.

  1. Download the zip from the members area.
  2. Extract the zip.
  3. Upload the contents to wp-content/themes/pagelines/ overwriting the original files.

Share this post


Link to post
Share on other sites

Posted · Report post

ah ok. great thanks!

Share this post


Link to post
Share on other sites

Posted · Report post

Do you need further assistance with this?

Share this post


Link to post
Share on other sites

Posted · Report post

hey i just followed the instructions that simon gave. no avail. same error. that randomly pops up whenever I save my css:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/justseti/public_html/wp-content/themes/pagelines/includes/less.plugin.php on line 2551

Share this post


Link to post
Share on other sites

Posted · Report post

So lets see the css you are saving

Share this post


Link to post
Share on other sites

Posted · Report post

still no luck. same error.

Share this post


Link to post
Share on other sites

Posted · Report post

hey.

also . max cdn doesn't seem to work with pagelines. my css goes all wonky. grr.

Share this post


Link to post
Share on other sites