• Welcome to Simple Machines Community Forum. Please login or sign up.
October 23, 2021, 03:45:59 PM

News:

Check out the SMF Function DB!


Breeze

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

Previous topic - Next topic

Suki

Sorry for the late reply, that file appears to have a weird line count, adding multiple empty new lines, this is mostly caused by text editors opening php files, please use a code editor such as notepad++ for handling php files.

There is indeed a bug for new PHP versions, will try to release a fix for it shortly.
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.

Suki

New version has been released: https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.15

To update uninstall and install using the package manager.
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.

Shades.

Quote from: Suki on June 20, 2021, 02:12:28 PM
New version has been released: https://github.com/MissAllSunday/Breeze/releases/tag/v1.0.15

To update uninstall and install using the package manager.
Working good! Thanks! 8)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

June 22, 2021, 08:34:58 AM #303 Last Edit: June 22, 2021, 08:46:10 AM by Shades.
Found another small issue. When logged in as a regular member, I click on the admin profile/wall and get this error:

1rst time clicked:
QuoteAn Error Has Occurred!
The database value you're trying to insert does not exist: users

2nd time clicked:
QuoteAn Error Has Occurred!
Cannot use string offset as an array

Here are the Admin error logs:

Quotehttps://mysite.com/index.php?action=profile;u=1
Cannot use string offset as an array

#0 /index.php(134): fatal_error(string, string)
#1 {closure}(Error)
#2 {main}

Quotehttps://mysite.com/index.php?action=profile;u=1
The database value you're trying to insert does not exist: users
Function: loadMemberDataApply
File: /xxxxx/xxxxx/mysite.com/Sources/Load.php
Line: 1109

#0 /Sources/Subs-Db-mysql.php(873): error_backtrace(string, string, integer, string, integer)
#1 replacement__callback(array)
#2 /Sources/Subs-Db-mysql.php(1084): preg_replace_callback(string, array, string)
#3 /Sources/Load.php(1109): query(string, string, array)
#4 /Sources/Breeze/BreezeTools.php(286): loadMemberData(array, boolean, string)
#5 /Sources/Breeze/BreezeUser.php(725): loadUserInfo(array)
#6 /Sources/Breeze/BreezeUser.php(121): breezeTrackViews()
#7 /Sources/Profile.php(731): breezeWall(string)
#8 /index.php(185): ModifyProfile()
#9 {main}

Quotehttps://mysite.com/index.php?action=profile;u=1
2: array_keys() expects parameter 1 to be array, string given
File: /xxxxx/xxxxx/mysite.com/Sources/Breeze/BreezeUser.php
Line: 725

#0 /Sources/Breeze/BreezeUser.php(725): array_keys(string)
#1 /Sources/Breeze/BreezeUser.php(121): breezeTrackViews()
#2 /Sources/Profile.php(731): breezeWall(string)
#3 /index.php(185): ModifyProfile()
#4 {main}

Quotehttps://mysite.com/index.php?action=profile;u=1
8: Array to string conversion
File: /xxxxx/xxxxx/mysite.com/Sources/Breeze/BreezeUser.php
Line: 710

#0 /Sources/Breeze/BreezeUser.php(121): breezeTrackViews()
#1 /Sources/Profile.php(731): breezeWall(string)
#2 /index.php(185): ModifyProfile()
#3 {main}

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

Actually just tested again and after turning on the wall in each members profile settings, member to member gets the same errors as above when viewing other members profile/wall.

Logged in as admin, I can see and comment on every member profile/wall but not when logged in as a regular member.

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

Thank you for your testing, right now I'm somehow busy but will get back to this as soon as I can.

If you are familiar with github it will help me greatly if you can log those issues if not thats ok, thank you agian for the testing done so far, greatly appreciate it.
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.

Shades.

Quote from: Suki on June 28, 2021, 11:56:16 AM
Thank you for your testing, right now I'm somehow busy but will get back to this as soon as I can.

If you are familiar with github it will help me greatly if you can log those issues if not thats ok, thank you agian for the testing done so far, greatly appreciate it.

NP & Done! 8)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

Hi Shades. Can you please give it a try to this beta package and see if it fixes the issues?
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.

Shades.

Quote from: Suki on July 21, 2021, 06:23:24 PM
Hi Shades. Can you please give it a try to this beta package and see if it fixes the issues?
Hi Suki,

After enabling it in admin and also in my profile (as Admin) I get this error when going to my wall:

QuoteAn Error Has Occurred!
The database value you're trying to insert does not exist: users

Admin Error Logs:
Quotehttxx://*****.com/index.php?action=profile;area=summary;u=1
The database value you're trying to insert does not exist: users
Function: loadMemberData
File: /home2/*****/*****.com/Sources/Load.php
Line: 1109

#0 /Sources/Subs-Db-mysql.php(873): error_backtrace(string, string, integer, string, integer)
#1 replacement__callback(array)
#2 /Sources/Subs-Db-mysql.php(1084): preg_replace_callback(string, array, string)
#3 /Sources/Load.php(1109): query(string, string, array)
#4 /Sources/Breeze/BreezeTools.php(286): loadMemberData(array, boolean, string)
#5 /Sources/Breeze/BreezeUser.php(716): loadUserInfo(array)
#6 /Sources/Breeze/BreezeUser.php(122): breezeGetProfileViews()
#7 /Sources/Profile.php(731): breezeWall(string)
#8 /index.php(185): ModifyProfile()
#9 {main}

Quotehttxx://*****.com/index.php?action=profile;area=summary;u=1
2: array_keys() expects parameter 1 to be array, null given
File: /home2/*****/*****.com/Sources/Breeze/BreezeUser.php
Line: 716

#0 /Sources/Breeze/BreezeUser.php(716): array_keys(NULL)
#1 /Sources/Breeze/BreezeUser.php(122): breezeGetProfileViews()
#2 /Sources/Profile.php(731): breezeWall(string)
#3 /index.php(185): ModifyProfile()
#4 {main}

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

Logged in as a regular member and viewing my own profile without enabling my wall everything works fine but when I enable it in my profile i get this error when viewing the admins profile:
QuoteAn Error Has Occurred!
Cannot use object of type stdClass as array

and this error when viewing my own profile (regular member):
QuoteAn Error Has Occurred!
The database value you're trying to insert does not exist: users

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

Thanks!  can you share whats the value in your breeze_profile_views column for your admin account?
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.

Shades.

Quote from: Suki on July 22, 2021, 10:03:34 AM
Thanks!  can you share whats the value in your breeze_profile_views column for your admin account?
Where or how do I find that? Didn't see it in phpadmin!

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

If you are using phpMyAdmin then go to your members table, there look for the admin account, usually the first one and take a look at the columns, the breeze_profile_views should be the last of one of the last columns, or use this query:


SELECT breeze_profile_views
FROM your_table_name
WHERE id_member = your_admin_id


replace the your_table_name and your_admin_id with the correct values.
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.

Shades.

Looks like it didn't even create that table for some reason!?

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

Its not really a table but a column inside your members table, what was the result of the query?
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.

Shades.

Yeah the column I meant is not there so I installed this mod on a fresh fresh install and got all of the same errors.

It did create the column this time but the value is blank.

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

OK, can you try this one.
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.

Shades.

Works good now when viewing my own profile but when viewing another members wall i get:
Quotehttps://*****.com/index.php?action=profile;area=summary;u=2
Cannot use object of type stdClass as array

#0 /index.php(134): fatal_error(string, string)
#1 {closure}(Error)
#2 {main}

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Shades.

There are now values in the column breeze_profile_view....

Admin {"2":
Member1 {"user":"2","last_view":1626980986,"views":1}...

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Suki

Cool, thats the expected behaviour, is there any other error in your error log?
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: