We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Missing argument 2 for OW_ViewRenderer::assignVar(), called in[Solved] | Forum

JoshWho
JoshWho Mar 10 '15
any clue what this means?



Missing argument 2 for OW_ViewRenderer::assignVar(), called in /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/application.php on line 235 and definedFile:/var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/view_renderer.phpLine:88

The Forum post is edited by ross Mar 11 '15
JoshWho
JoshWho Mar 10 '15
somthing is running my mem to almost 3 gigs and thats the only error im seeing
ross Team
ross Mar 10 '15
Topic was moved from General Questions.
ross Team
ross Mar 11 '15
Please check whether you have this:

$viewRenderer->assignVar('bottomPoweredByLink', '<a href="http://www.oxwall.org/" target="_blank" title="Powered by Oxwall Community Software"><img src="' . $currentThemeImagesDir . 'powered-by-oxwall.png" alt="Oxwall Community Software" /></a>');


on line 235 in ow_core/application.php

JoshWho
JoshWho Mar 11 '15
no i removed that line.   I dont think that would cause this issue.


For some reason 3rd party plugins that work with the cron just all stopped working.


My mem was going up really high but i think i partially stabelized that now but I cant figure out why certain plugins like auto submit just stopped working since sunday.

JoshWho
JoshWho Mar 11 '15
my cron is working because it does update when people come online and stuff. 
ross Team
ross Mar 11 '15
well, which is why you have this error


Missing argument 2 for OW_ViewRenderer::assignVar(), called in /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/application.php on line 235 and definedFile:/var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/view_renderer.phpLine:88

restore the line


as to the cron, check your ow_cron/error-logs file probably something is there stating the error

JoshWho
JoshWho Mar 11 '15
i removed that line on feburary 9th.   This problem just started happening sunday.


here is the error log im not sure what im looking for


Trace: [#0 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/database.php(253): OW_Database->__construct(Array) | #1 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/ow.php(230): OW_Database::getInstance(Array) | #2 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/base_dao.php(47): OW::getDbo() | #3 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_system_plugins/base/bol/config_dao.php(66): OW_BaseDao->__construct() | #4 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_system_plugins/base/bol/config_dao.php(55): BOL_ConfigDao->__construct() | #5 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_system_plugins/base/bol/config_service.php(63): BOL_ConfigDao::getInstance() | #6 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_system_plugins/base/bol/config_service.php(52): BOL_ConfigService->__construct() | #7 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/config.php(48): BOL_ConfigService::getInstance() | #8 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/config.php(68): OW_Config->__construct() | #9 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/ow.php(167): OW_Config::getInstance() | #10 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_cron/run.php(48): OW::getConfig() | #11 {main}][Tue Mar 10 21:03:02 2015] [ow_core_log] [Notice] Message: Only variables should be passed by reference File: /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_plugins/loginredirect/init.php Line:13[Tue Mar 10 21:03:02 2015] [ow_core_log] [Exception] Message: SQLSTATE[70100]: <<Unknown error>>: 1317 Query execution was interrupted File: /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/database.php Line:707 Trace: [#0 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/database.php(707): PDOStatement->execute() | #1 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/database.php(341): OW_Database->execute('SELECT * FROM o...', Array) | #2 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/base_dao.php(126): OW_Database->queryForObjectList('SELECT * FROM o...', 'BOL_CronJob', Array, 0, Array) | #3 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_system_plugins/base/bol/cron_service.php(64): OW_BaseDao->findAll() | #4 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_cron/run.php(104): BOL_CronService->findJobList() | #5 {main}]


JoshWho
JoshWho Mar 11 '15

Command output from cron shows

Output from command curl http://buddylist.co/ow_cron/run.php ;..

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 3 0 3 0 0 7 0 --:--:-- --:--:-- --:--:-- 8

The Error log shows


Line:13[Tue Mar 10 21:03:02 2015] [ow_core_log] [Exception] Message: SQLSTATE[70100]: <<Unknown error>>: 1317 Query execution was interrupted File: /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/database.php Line:707 Trace: [#0 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/database.php(707): PDOStatement->execute() | #1 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/database.php(341): OW_Database->execute('SELECT * FROM o...', Array) | #2 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/base_dao.php(126): OW_Database->queryForObjectList('SELECT * FROM o...', 'BOL_CronJob', Array, 0, Array) | #3 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_system_plugins/base/bol/cron_service.php(64): OW_BaseDao->findAll() | #4 /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_cron/run.php(104): BOL_CronService->findJobList() | #5 {main}]

The Forum post is edited by JoshWho Mar 11 '15
ross Team
ross Mar 11 '15
You're not eligible to remove Oxwall attribution link. Restore it otherwise we do not provide assistance
JoshWho
JoshWho Mar 11 '15
i am to i paid $50.00 bucks on the donation page
JoshWho
JoshWho Mar 11 '15
ross Team
ross Mar 11 '15
Oh, sorry, searched without www. ;

I don't know why this error


Missing argument 2 for OW_ViewRenderer::assignVar(), called in /var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/application.php on line 235 and definedFile:/var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/view_renderer.phpLine:88



appeared just now. 


Anyway restore the line I provided. Why did you remove it anyway?


As to the cron, enable debug mode and go to www.site.com/ow_cron/run.php . Do you see any errors there?


JoshWho
JoshWho Mar 11 '15
i removed that line because it took off the attribution for every page.

I couldnt find where to edit the forgot password page.


I will run the debugger now will post back in a couple minutes

JoshWho
JoshWho Mar 11 '15
o yeah i do not have the backup of the original file. i had it on my laptop but it fried on me. could you please provide the line including the dev brackets that start it please
ross Team
ross Mar 11 '15
it is in blank.html, check the instructions we sent you. 

here's the complete line: 

$viewRenderer->assignVar('bottomPoweredByLink', '<a href="http://www.oxwall.org/" target="_blank" title="Powered by Oxwall Community Software"><img src="' . $currentThemeImagesDir . 'powered-by-oxwall.png" alt="Oxwall Community Software" /></a>');

JoshWho
JoshWho Mar 11 '15
i just see a white page when i run the cron with debug on.   it took about 45 seconds to load.
ross Team
ross Mar 11 '15
go to you phpmyadmin and check ow_base_cron_job table what is the latest time the cron ran? you can convert the timestamp here: http://www.onlineconversion.com/unix_time.htm
JoshWho
JoshWho Mar 11 '15

This is with dev mode and debug enabled

OW Debug - WarningMessage:include(/var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_plugins/memephoto/bol/memephoto_album_service.php): failed to open stream: No such file or directoryFile:/var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/autoload.phpLine:110

OW Debug - WarningMessage:include(): Failed opening '/var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_plugins/memephoto/bol/memephoto_album_service.php' for inclusion (include_path='/var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_plugins/yconnect/lib')File:/var/zpanel/hostdata/zadmin/public_html/buddylist_cf/ow_core/autoload.phpLine:110

The Forum post is edited by JoshWho Mar 11 '15
ross Team
ross Mar 11 '15
Never enable debug mode and dev mode at the same time. Only one at a time. 
Pages: 1 2 »