News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

Breeze

Started by Suki, March 21, 2014, 07:50:09 PM

Previous topic - Next topic

Kimmie

Quote from: Suki on August 18, 2014, 09:56:06 PM


And yes, it has to be php 5.3, there are some features this mod uses that are only available on 5.3.


Thanks for the response. I spoke with my host and they are planning on upgrading in the next few weeks. They have some sites hosted that are not compatible with the newer versions of PHP so they have to get those resolved first. I can wait.

qs12345

Late reply sorry, I ended up realizing I just didn't set the permissions right when I went back through everything. Thanks for the help!

detercan

Hi,

I got this error when i clicked wall on my profile.

Wrong value type sent to the database. Array of integers expected. (users)

Suki

I remember that error, cannot recall what was the exact thing that caused it.  What version are you using?  and does the error log say more about this? perhaps a line number and file?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

detercan

#144
http://www.forumsepeti.com/index.php?action=profile;area=summary;u= Wrong value type sent to the database. Array of integers expected. (users)

Function: loadMemberData: /home/forumsepeti.com/httpdocs/Sources/Load.php
line: 1156



That is the error and i am using smf 2.0.8 version

Suki

I actually meant this mod's version and can you post the entire error?  I suppose "Satır" means "line" ?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

detercan

Satır means 'line' in Turkish. And i installed version 1.0.4

Suki

The current version is 1.0.6, so you might want to give that version a try.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

detercan

I downloaded and installed the version you gave but still same problem when i want to go my wall.

Wrong value type sent to the database. Array of integers expected. (user)

This is the error msg

http://www.forumsepeti.com/index.php?action=wall

Wrong value type sent to the database. Array of integers expected. (user)

Function: getActivityLog /home/forumsepeti.com/httpdocs/Sources/Breeze/BreezeQuery.php

Line: 1331

Suki

Can you put this on your Sources/Breeze/BreezeQuery.php file  below trhis line:


public function getActivityLog($user = false)
{
// We start with nothing!
$return = false;

// The usual check..
if (empty($user))
return $return;


put this:

global $context;

if ($context['user']['is_admin'])
var_dump($user);die;

then go to the page that generates the error, see whats on the page and post it here.

Also, it might be possible that something is wrong with your buddy list:  $this->userSettings['buddies']  that var should return an array of integers.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

detercan

I did wat u have said and when i went to my wall it says

array(4) { [0]=> string(0) "" [1]=> string(1) "2" [2]=> string(2) "69" [3]=> string(2) "99" }


Suki

Interesting, somehow you end up with an empty value. It usually means your buddies string is messed up.

OK, as a quick workaround, find the code you included:


global $context;

if ($context['user']['is_admin'])
var_dump($user);die;



and replace it with this:


$user = array_filter($user);


And let me know if you still have errors.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

detercan

Now the wall is working but my profile says same error :S When i click smb's profile the wall is opening but when i click my profile it gives same error and also when i click smb's profile i want their summary to open 'not the wall'

Suki

Then it might be better to fix your buddies field in the DB

Go to phpmyadmin or similar, open your DB, select the members table, select your row and click on edit look out for the "buddies" column and remove any 0 or other characters there might be, it should contain only numbers and commas like this:  1,2,3,4,5.

If you're unsure just delete everything inside the buddies field and go back and add your buddies again from the forum.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

meemzo

Can someone please tell me how to resize the images in the breeze profiles "who visited"?  They are the same width, but vary in height.  It looks messy.

Suki

Your browser is suppose to automatically change the height depending on the avatar's width. Link?
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

meemzo

Since you can't see the link without being a registered member I guess a screenshot will have to do?  It looks the same across three different browsers.


Suki

That is the intended behavior, the mod is setting a width while leaving the browser to specify the height to maintain the image's proportions.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

meemzo

Since I'd rather have the images distorted than the sloppy layout, can I implement the changes somehow?

Suki

On your Sources/Breeze/BreezeUserInfo.php file find this line:


<a href="#facebox_'. $user['id'] .'" rel="facebox"><img src="'.(!empty($user['avatar']['href']) ? ''.$user['avatar']['href'].'' : $settings['default_theme_url'] .'/images/breeze/default_user.png') . '" width="50px" /></a>';


There is a width="50px"  just add a height too:

width="50px" height="50"
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Making tough decisions, so you don't have to.

Advertisement: