vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Board Optimization - [DBTech] vB Optimise 2.0.1 (Lite) (https://vborg.vbsupport.ru/showthread.php?t=199207)

Ramsesx 01-03-2009 10:02 AM

Quote:

Originally Posted by mdelcour (Post 1699913)
yeah, tools did nothing. This really stinks.

Sorry to ask but are you really sure you edited the includes/config.php?
Maybe you check it again.

thompson 01-03-2009 10:40 AM

does it works on vb 3.7 also ?

and what about vbseo ?

Reycer 01-03-2009 12:56 PM

yes, I have checked config.php several times over. Still no luck.

Reycer 01-03-2009 01:11 PM

checked it again this morning, still getting same error, can't get into anything. Where is the original coder on this one? Still getting this error:

Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/content/m/d/e/mdelcour201/html/forums/includes/class_activecache.php on line 20

And can't get to anything...VERY FRUSTRATING!

nascartr 01-03-2009 01:23 PM

Quote:

Originally Posted by thompson (Post 1700197)
does it works on vb 3.7 also ?

and what about vbseo ?


According to some it does but this was officially released for 3.8 so to potentially avoid mdelcour's problem I would install with caution since it's not intentionally made for the 3.7 series.

MissKalunji 01-03-2009 01:36 PM

Quote:

Originally Posted by thompson (Post 1700197)
does it works on vb 3.7 also ?

and what about vbseo ?

It works fine on 3.7 I'm using it.

and i also have vbseo no problem at all just besides the caching phrases but that's everyone.

Reycer 01-03-2009 02:08 PM

I am about to start offering payment to fix this problem. I really need my board back online.

Andreas 01-03-2009 02:56 PM

Are you sure you carefully read everything before installing this product, especially
Quote:

1. I'm getting PHP errors, what gives?
A) You'll need to be using PHP5 for vB Optimise to work.
?

Check your config.php edit again, normally there is no way it could fail (it might be necessary to flush your XCache/eAccelerator/APC cache aferwards if you don't check mtime as the server otherwise won't notice that the file was changed).

NolF 01-03-2009 03:00 PM

@mdelcour
Are you sure /includes/class_activecache.php is there?
Also can you be certain that you didn't cuorrupt the config.php file? line ~86 asks for
"switch (strtolower($vbulletin->config['Database']['dbtype']))"
maybe the info entered in your config.php regarding dbtype is not working (added an extra ' or " might have broken it

When did the error start coming up? after installing the product? touching config.php?


Doing http://www.vbulletin.com/forum/showthread.php?t=196688 should really disable hooks, so probly your config.php is corrupted ;)

Reycer 01-03-2009 03:15 PM

the error started right after I installed the plugin (xml) for this mod. Right after it got done, the page reloaded and started this error. I haven't changed anything in the config file except for the define('DISABLE_HOOKS', true); code, trying to get back into my site. Yes, the class_activecache.php file is there.

Andreas 01-03-2009 03:22 PM

Drop me a PM with your FTP and ACP login and i'll disable the product for you (when I am back in approx. 15 minutes).

Reycer 01-03-2009 03:28 PM

Quote:

Originally Posted by Andreas (Post 1700362)
Drop me a PM with your FTP and ACP login and i'll disable the product for you (when I am back in approx. 15 minutes).

done. thanks for the help.

Reycer 01-03-2009 04:12 PM

just saw it....you are awesome!!!!!

Andreas 01-03-2009 04:31 PM

@Deceptor
I suggest to add a dependency for PHP 5.1 to prevent users with ancient PHP versions from installing your excellent work and running into problem then ;)

BamaStangGuy 01-03-2009 05:53 PM

Would it be possible to cache some of the queries in this plugin: https://vborg.vbsupport.ru/showthread.php?t=177778

It's a very nice plugin but a pain on my server. :(

I'd love to be able to cache some of the queries in xcache for 1 min or so... maybe longer.

PhilMcKrackon 01-03-2009 08:53 PM

Quote:

Originally Posted by mdelcour (Post 1699789)
I am running 3.7.4 with PHP 5.0 I installed according to installtion instructions and now my site is down with no way for me to fix it. The uninstall instructions above are NOT working. Could someone please help me figure this out, so that I can get this crap off of my forum.

www.lacledeforum.com

Quote:

Originally Posted by Andreas (Post 1700440)
@Deceptor
I suggest to add a dependency for PHP 5.1 to prevent users with ancient PHP versions from installing your excellent work and running into problem then ;)

Glad you got your forums back mdelcour. Does this mean that the min PHP is 5.1 or did you not have PHP 5.0 as was stated is required?

princeedward 01-03-2009 09:42 PM

Tested:....and seems to be working fine to vB3.6.8. PL2 without error except to vBCMPS

...but don't know if it's really working fine or enough... with my debug report below...as i see it...only FileCache Setup only has a good result...

vB Optimise: OFF

* Page Generation 0.31044 seconds
* Memory Usage 5,897KB
* Queries Executed 27 (?)
======================================

File Cache:

* Page Generation 0.19487 seconds
* Memory Usage 5,916KB
* Queries Executed 24 (?)

MemCache:

* Page Generation 0.19172 seconds
* Memory Usage 5,920KB
* Queries Executed 44 (?)

XCache:

* Page Generation 0.17345 seconds
* Memory Usage 5,921KB
* Queries Executed 44 (?)

APC:

* Page Generation 0.17240 seconds
* Memory Usage 5,920KB
* Queries Executed 44 (?)

eAccelerator:

* Page Generation 0.17216 seconds
* Memory Usage 5,924KB
* Queries Executed 44 (?)

any comment there guys...

:erm:

Reycer 01-03-2009 10:09 PM

Quote:

Originally Posted by PhilMcKrackon (Post 1700683)
Glad you got your forums back mdelcour. Does this mean that the min PHP is 5.1 or did you not have PHP 5.0 as was stated is required?

No I have PHP 5.0 it obviously does not work with 5.0

Reycer 01-03-2009 10:11 PM

5.0 is as high as GoDaddy servers go. They need to be updated.

and before you say it, I know....I need to get away..far far away from GoDaddy, but on the other hand GoDaddy is cheap. (I guess you get what you pay for..)

ShadMan 01-03-2009 11:45 PM

I installed this about an hour ago, and it seems to be working as stated (with the exception of the email "from" issue that has been mentioned a few times previously). Thanks!

bahisyeri 01-04-2009 05:13 AM

It has some problems with phrase caching, but other options working good but i prefer old hacks from trigunflame, like plugin accelerator :) anyway nice job

lolo? 01-04-2009 06:54 AM

hy Deceptor
i have a small problem with recent thread on vba if i activate the cache doest aplly permission group if i apply on welcome block i'm loggin with an other user :(
Thanks for your work :)

Amenadiel 01-04-2009 12:41 PM

it seems that WOL caching does not work with VB 3.7.3
I get this error on forumhome only:

Code:

Database error in vBulletin 3.7.3:

Invalid SQL:

                SELECT
                        user.username, (user.options & 512) AS invisible, user.usergroupid,
                        session.userid, session.inforum, session.lastactivity, session.useragent,
                        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
                FROM vb_session AS session
                LEFT JOIN vb_user AS user ON(user.userid = session.userid)
                WHERE session.lastactivity >;


logicuk 01-04-2009 01:51 PM

Quote:

Originally Posted by Amenadiel (Post 1701269)
it seems that WOL caching does not work with VB 3.7.3
I get this error on forumhome only:

Code:

Database error in vBulletin 3.7.3:

Invalid SQL:

                SELECT
                        user.username, (user.options & 512) AS invisible, user.usergroupid,
                        session.userid, session.inforum, session.lastactivity, session.useragent,
                        IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
                FROM vb_session AS session
                LEFT JOIN vb_user AS user ON(user.userid = session.userid)
                WHERE session.lastactivity >;


Works for me fine on 3.7.2

NolF 01-04-2009 02:49 PM

Quote:

Originally Posted by lolo? (Post 1701096)
hy Deceptor
i have a small problem with recent thread on vba if i activate the cache doest aplly permission group if i apply on welcome block i'm loggin with an other user :(
Thanks for your work :)

You are only supposed to activate the cache for modules that are not usergroup dependent because of the problem you just mentioned :)

Quote:

Originally Posted by princeedward (Post 1700721)
...but don't know if it's really working fine or enough... with my debug report below...as i see it...only FileCache Setup only has a good result...

Did you have said softwares installed? In other words did you have Xcache installed when selecting XCache?

thedark1 01-04-2009 09:48 PM

man this is pretty fast, I'm using it with xcache and the forum is loading quick ... will keep testing it out to see if any problems spring up....

thanks

Chadi 01-05-2009 01:27 AM

I need a bit of help here please.

vB Optimise: You have selected a cache method that vB Optimise has detected you cannot use, this may be because the extension required is either not installed or active on your server.

I get that on both eaccelerator, yet it was compiled in Apache (along with Zend Accelerator).

I'm using Cpanel / Centos / PHP 5.

My vbconfig:

Code:

    // ****** DATASTORE CACHE CONFIGURATION *****
    // Here you can configure different methods for caching datastore items.
    // vB_Datastore_Filecache  - to use includes/datastore/datastore_cache.php
    // vB_Datastore_APC - to use APC
    // vB_Datastore_XCache - to use XCache
    // vB_Datastore_Memcached - to use a Memcache server, more configuration below
// $config['Datastore']['class'] = 'vB_Datastore_Filecache';

    // ******** DATASTORE PREFIX ******
    // If you are using a PHP Caching system (APC, XCache, eAccelerator) with more
    // than one set of forums installed on your host, you *may* need to use a prefix
    // so that they do not try to use the same variable within the cache.
    // This works in a similar manner to the database table prefix.
// $config['Datastore']['prefix'] = '';

    // It is also necessary to specify the hostname or IP address and the port the server is listening on
/*
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]        = '127.0.0.1';
$config['Misc']['memcacheport'][$i]            = 11211;
$config['Misc']['memcachepersistent'][$i]    = true;
$config['Misc']['memcacheweight'][$i]        = 1;
$config['Misc']['memcachetimeout'][$i]        = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;
*/

Eaccelerator settings in php.ini

Code:

[eAccelerator]
extension="eaccelerator.so"
eaccelerator.shm_size="256"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

Thanks.

ezak 01-05-2009 03:26 PM

thanks its nice mod and *installed*

but I want to know something
if I want to change the dir for ./vboptimise to other place out off public_html
for security reason as the folder is 0777

or make an option to set the dir for vboptimise cache as the attachment place

princeedward 01-05-2009 04:59 PM

Quote:

Originally Posted by NolF (Post 1701358)
Did you have said softwares installed? In other words did you have Xcache installed when selecting XCache?

...thanks for the reply bro...yeah it's my mistake...don't have XCache installed to my cpanel...i'm on a shared hosting only...can't have it on there...only if i get VPS...so what you think is the setup i must used on this one for my shared host?...

best regards...

:)

snakes1100 01-05-2009 08:37 PM

Quote:

Originally Posted by chadi (Post 1701925)
I need a bit of help here please.

vB Optimise: You have selected a cache method that vB Optimise has detected you cannot use, this may be because the extension required is either not installed or active on your server.

I get that on both eaccelerator, yet it was compiled in Apache (along with Zend Accelerator).

I'm using Cpanel / Centos / PHP 5.

My vbconfig:

Thanks.

Did you check your phpinfo and make sure eaccelerator is actually loaded?

Chadi 01-05-2009 09:41 PM

For sure I did. Eaccelerator is installed, loaded so is memcache/memcached.

root@server [~]# /usr/local/apache/bin/httpd -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_cache.c
mod_mem_cache.c
mod_include.c
mod_filter.c
mod_deflate.c
mod_log_config.c
mod_logio.c
mod_env.c
mod_expires.c
mod_headers.c
mod_unique_id.c
mod_setenvif.c
mod_proxy.c
mod_proxy_connect.c
mod_proxy_ftp.c
mod_proxy_http.c
mod_proxy_ajp.c
mod_proxy_balancer.c
mod_ssl.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_info.c
mod_suexec.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_so.c


I get this if I enable memcache

Fatal error: Memcache is not installed in [path]/includes/class_datastore.php on line 186


Quote:

// $config['Datastore']['class'] = 'vB_Datastore_Filecache';

// ******** DATASTORE PREFIX ******
// If you are using a PHP Caching system (APC, XCache, eAccelerator) with more
// than one set of forums installed on your host, you *may* need to use a prefix
// so that they do not try to use the same variable within the cache.
// This works in a similar manner to the database table prefix.
// $config['Datastore']['prefix'] = '';

// It is also necessary to specify the hostname or IP address and the port the server is listening on
/*
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i] = '127.0.0.1';
$config['Misc']['memcacheport'][$i] = 11211;
$config['Misc']['memcachepersistent'][$i] = true;
$config['Misc']['memcacheweight'][$i] = 1;
$config['Misc']['memcachetimeout'][$i] = 1;
$conf
I get the error if I uncomment the below and make it Memcached instead of Filecache

// $config['Datastore']['class'] = 'vB_Datastore_Filecache';

(line 141)


It has to be something with this mod because my modules are loaded and showing up in the outputs, phpinfo, processes.

KevinL 01-05-2009 09:48 PM

Quote:

/*
$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i] = '127.0.0.1';
$config['Misc']['memcacheport'][$i] = 11211;
$config['Misc']['memcachepersistent'][$i] = true;
$config['Misc']['memcacheweight'][$i] = 1;
$config['Misc']['memcachetimeout'][$i] = 1;
$conf
You have to remove the /* and \* from the section above...

Chadi 01-05-2009 09:52 PM

Thanks but still getting this error after uploading the config

Fatal error: Memcache is not installed in [path]/includes/class_datastore.php on line 186

With below config:

// $config['Datastore']['class'] = 'vB_Datastore_Filecache';

// ******** DATASTORE PREFIX ******
// If you are using a PHP Caching system (APC, XCache, eAccelerator) with more
// than one set of forums installed on your host, you *may* need to use a prefix
// so that they do not try to use the same variable within the cache.
// This works in a similar manner to the database table prefix.
// $config['Datastore']['prefix'] = '';

// It is also necessary to specify the hostname or IP address and the port the server is listening on

$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i] = '127.0.0.1';
$config['Misc']['memcacheport'][$i] = 11211;
$config['Misc']['memcachepersistent'][$i] = true;
$config['Misc']['memcacheweight'][$i] = 1;
$config['Misc']['memcachetimeout'][$i] = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;

KevinL 01-05-2009 09:59 PM

And you're sure your memcache server is running? and you uncommented the second \* after that section you just copied there?

Chadi 01-05-2009 10:23 PM

Yes to both questions.

Code:

//$config['Datastore']['class'] = 'vB_Datastore_Memcached';

    // ******** DATASTORE PREFIX ******
    // If you are using a PHP Caching system (APC, XCache, eAccelerator) with more
    // than one set of forums installed on your host, you *may* need to use a prefix
    // so that they do not try to use the same variable within the cache.
    // This works in a similar manner to the database table prefix.
// $config['Datastore']['prefix'] = '';

    // It is also necessary to specify the hostname or IP address and the port the server is listening on

$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]        = '127.0.0.1';
$config['Misc']['memcacheport'][$i]            = 11211;
$config['Misc']['memcachepersistent'][$i]    = true;
$config['Misc']['memcacheweight'][$i]        = 1;
$config['Misc']['memcachetimeout'][$i]        = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;

// ****** The following options are only needed in special cases ******

    //    ****** MySQLI OPTIONS *****


Code:

root@server [~]# ps aux | grep memcache
root      6140  0.0  0.0  5316  736 pts/0    S+  18:22  0:00 grep memcache
nobody  27945  0.0  0.0  2896  836 ?        Ss  16:06  0:00 /usr/local/bin/memcached -u nobody -d -m 2048 -l 127.0.0.1 -p 11211


root@server [~]# ps aux | grep memcached
root      6150  0.0  0.0  4156  736 pts/0    S+  18:22  0:00 grep memcached
nobody  27945  0.0  0.0  2896  836 ?        Ss  16:06  0:00 /usr/local/bin/memcached -u nobody -d -m 2048 -l 127.0.0.1 -p 11211


KevinL 01-06-2009 12:26 AM

hmmm weird. The only other thing I can think of is...do you have memcache installed with memcached server? I'm sure you do...just a thought though.

These are two good write ups...

http://www.vbulletin.com/forum/showp...4&postcount=39

http://pastebin.com/m695d4b5b

Chadi 01-06-2009 12:55 AM

That vb.com guide is what I already used. I already pasted earlier the output to show memcached is running. I installed all 3: libevent, memcache, memcached and recompiled apache via Easy apache, restarted httpd before/after, etc.

Code:

root@server [~]# php -i | grep -i 'memcache'
OLDPWD => /root/memcache-3.0.2
_SERVER["OLDPWD"] => /root/memcache-3.0.2
_ENV["OLDPWD"] => /root/memcache-3.0.2


Code:

root@server [~]# ps aux | grep memcached
root      4823  0.0  0.0  5024  736 pts/0    S+  20:55  0:00 grep memcached
nobody  27945  0.0  0.0  2896  836 ?        Ss  16:06  0:00 /usr/local/bin/memcached -u nobody -d -m 2048 -l 127.0.0.1 -p 11211


Chadi 01-06-2009 01:00 AM

1 Attachment(s)
Ok got it. I had to remove the entire path to memcache.so (from php.in file) and just leave it as memcache.so

I enabled memcache in the vboptimize module successfully.

However, two things:

noticed no speed difference
this monitoring tool shows no difference (even on refresh)
http://livebookmark.net/journal/2008...s-like-apcphp/

KevinL 01-06-2009 01:04 AM

That last one is all I had haha sorry. Wish I could do more. That really would have been what I thought it would have been when I looked at it again. It was saying that memcache is not installed....maybe ask your host to check it out for you and make sure?

KevinL 01-06-2009 01:07 AM

In all honesty I have found that xcache seemed faster them memcache for this.


All times are GMT. The time now is 07:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02387 seconds
  • Memory Usage 1,863KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete