News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Breeze

Started by All Colours Sam, 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)

All Colours Sam

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?
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

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

All Colours Sam

I actually meant this mod's version and can you post the entire error?  I suppose "Satır" means "line" ?
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

detercan

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

All Colours Sam

The current version is 1.0.6, so you might want to give that version a try.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

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

All Colours Sam

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.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

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" }


All Colours Sam

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.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

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'

All Colours Sam

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.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

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.

All Colours Sam

Your browser is suppose to automatically change the height depending on the avatar's width. Link?
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

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.


All Colours Sam

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.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

meemzo

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

All Colours Sam

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"
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Advertisement: