Closed (outdated)
Project:
Drupal tweaks
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2009 at 17:01 UTC
Updated:
7 Mar 2016 at 11:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
spack commentedI have the exact same problem on my website right now too.
Comment #2
Starminder commentedanyone?
Comment #3
Starminder commentedTried again today, still:
Warning: SESSION variable max_allowed_packet is read-only. Use SET GLOBAL max_allowed_packet to assign the value query: SET SESSION max_allowed_packet = 2147483648 in /usr/home/hoslo/public_html/includes/database.mysqli.inc on line 128
Fatal error: Call to undefined function user_access() in /usr/home/hoslo/public_html/sites/all/modules/drupal_tweaks/modules/db_tweaks/db_tweaks.module on line 62
Comment #4
xaxoto commentedi had the same problem and i couldn't do anything, download the latest drupal tweaks and db tweaks and overwrite them on the old files , then run yoursite.com/admin/update.php (dunno what's the link if you are not using clean url's) and after the update is finished it should be ok ...
Now i have a different problem, i'm setting max_allowed_packet by db_tweaks and the answer is "
user warning: SESSION variable max_allowed_packet is read-only. Use SET GLOBAL max_allowed_packet to assign the value query: SET SESSION max_allowed_packet = 104857600 in /users1/xaxocre/public_html/astro/sites/all/modules/drupal_tweaks/modules/db_tweaks/db_tweaks.inc on line 52.
Cannot change `max_allowed_packet` in your database configuration! Probably you do not have proper privileges. "
If anyone knows what should be done, or how can i manually set the max_allowed_packet .... i'll be glad to hear it
P.S: i'm on shared hosting and i dont have access to ssh or any command prompt
Comment #5
Starminder commentedxaxoto - I get this problem using the latest dev of drupal tweaks. Reinstalling is what results in the error.
Comment #6
kenorb commentedComment #7
kenorb commentedSorry for delayed reply.
It's fixed now.
http://drupal.org/cvs?commit=302450
Comment #8
Starminder commentedI grabbed the updated db_tweaks file, however, then I got this error:
Warning: SESSION variable max_allowed_packet is read-only. Use SET GLOBAL max_allowed_packet to assign the value query: SET SESSION max_allowed_packet = 2147483648 in /usr/home/hoslo/public_html/includes/database.mysqli.inc on line 128
Fatal error: Call to undefined function theme() in /usr/home/hoslo/public_html/includes/common.inc on line 924
Comment #9
kenorb commentedt() is not allowed in hook_boot, so I've to fix this as well.
http://drupal.org/cvs?commit=302784
Now should be ok, sorry for that.
Comment #10
Starminder commentedThank you thank you thank you! This fixed my issue and I can use the module again, YAY!
Comment #11
kenorb commentedDone couple of improvements:
http://drupal.org/cvs?commit=303164
hopefully there will be no any regression.
Comment #12
Starminder commentedI am now using dev dec 16th, so far no issues, thanks!
Comment #14
d4rkngel commentedSorry for reopen this, but I'm still having this problem with Drupal Tweaks and Drupal core cache enabled, I get this error at the bottom of some pages:
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'views_access' was given in ~/public_html/includes/menu.inc on line 452
Fatal error: Call to undefined function user_access() in ~/public_html/includes/menu.inc on line 449
Sometimes are both messages and sometimes is just the second that mention user_access()
disabling Drupal Tweaks or cache fixes de problem however I'd like to use both :\
I have to mention that I have a lot of modules enabled so I don't know if some of them are causing the issue, however this just happens with Drupal Tweaks, because disabling Drupal Tweaks and enabling drupal cache doesn't give any problem.
attached a screenshot
* sorry for the bad english
Comment #15
kenorb commentedI can't reproduce it, even with Drupal cache enabled.
Can you describe, which option are you using in Drupal Tweaks?
For PHP/DB? Msg Rules, etc?
Are you using dev version?
Comment #16
d4rkngel commentedI have just Database Tweaks enabled with the following options:
Enable SQL_BIG_SELECTS value: ON
Default MAX_JOIN_SIZE value: -1
Default MAX_JOIN_SIZE value: (same as my hosting provider defaults 'cause I can't change it)
Default wait_timeout value: 60
Edit: and yes I'm using more recently dev version
Comment #17
kenorb commentedDone some improvements in hook_boot:
http://drupal.org/cvs?commit=461780
http://drupal.org/cvs?commit=461782
Please test the latest dev version.
Thank you.
Comment #18
d4rkngel commentedYet the same and now I'm having a new error msg on user profiles:
Fatal error: Call to undefined function user_uid_optional_load() in ~/public_html/includes/menu.inc on line 410
Comment #19
kenorb commentedClosed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.