Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > uCash & uShop

Reply
 
Thread Tools
Everything is Gone Details »»
Everything is Gone
Version: , by TruthElixirX TruthElixirX is offline
Developer Last Online: Mar 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-23-2005 Last Update: Never Installs: 0
 
No support by the author.

Everything is gone. I went to go do the tempalte edits and now when I go to my forums www.punktek.com/forums

(If this works by the time you click it..ignore the style..its just for testing pruposes.)

Nothing shows up..its blank. What file could be causing it to do this? Or will I have to re-check everything?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-23-2005, 01:49 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I bet PHP error reporting is off so when something breaks, it just gives a blank page instead of an error message that tells what the problem is. That sucks an awful lot.

It has to be an error in the edit in either includes/init.php or global.php. I'd bet that if the admincp is affected, then it is includes/init.php, and if not it is global.php. Check over both edits and see if you made a mistake somewhere. If you can't find a mistake, post the code around and including both edits and I'll see if I can help.
Reply With Quote
  #3  
Old 02-23-2005, 02:50 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suggest you revert your template edit back. A blank page is in 90% of the cases a template error.
Reply With Quote
  #4  
Old 02-23-2005, 05:29 AM
Blootix Blootix is offline
 
Join Date: Feb 2005
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From my experience, this would be a template problem. Literally, everytime there was a blank page, it was some sort of problem with the templates.
Reply With Quote
  #5  
Old 02-23-2005, 10:37 AM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So if would I be able to turn on error reporting?


EDIT:: I got error reporting on, but its fixed to where only the admin of the server can view it. Thanks for the suggestions though guys.


EDIT2:: here is the bad coding and error:

Code:
// #############################################################################
// build $logincode template
$logincode = construct_login_code();
// ## <ucs>
// Unserialize uShop Actions.
$storeactions = unserialize($datastore['utt_store_act']);

// Make a list of the all the actions...
foreach ($storeactions as $actionid => $theaction) {
	if ($theaction['active'] == "1") {
		$allowed = explode(",", $theaction['allowedgroups']);
		foreach ($allowed as $allow) {
			if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $allow)) {
				$canenter = "1";
			}
		}
		$denied = explode(",", $theaction['deniedgroups']);
		foreach ($denied as $deny) {
			if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $deny)) {
				unset($canenter);
			}
		}
		if (!isset($canenter)) {
			$canenter = "0";
		}
		if (THIS_SCRIPT == 'ushop') {
			if ($canenter == 1) {
				$action1[$actionid] = $theaction;
			}
			if ($theaction['showinstore'] == 1) {
				(isset($actioncount) ? $actioncount++ : $actioncount = "1");
			}
		}
		if ($canenter == 1 && $theaction['showinstore'] == 1) {
			eval('$ushop_navbar .= "' . fetch_template('navbar_uttstore_actions') . '";');
		}
	}
}
// The end all solution.
unset($theaction);
unset($storeactions);
if (THIS_SCRIPT == 'ushop') {
	$storeactions = $action1;
}
unset($action1);
// ## </ucs>
if (DB_QUERIES)
{
	$pageendtime = microtime();
	$starttime = explode(' ', $pagestarttime);
	$endtime = explode(' ', $pageendtime);
	$aftertime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
	echo "End call of global.php:  $aftertime\n";
	echo "\n<hr />\n\n";
}
Error: Warning: Invalid argument supplied for foreach() in /global.php on line 682
Reply With Quote
  #6  
Old 02-23-2005, 11:46 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Punktek.com
So if would I be able to turn on error reporting?


EDIT:: I got error reporting on, but its fixed to where only the admin of the server can view it. Thanks for the suggestions though guys.


EDIT2:: here is the bad coding and error:

Code:
// #############################################################################
// build $logincode template
$logincode = construct_login_code();
// ## <ucs>
// Unserialize uShop Actions.
$storeactions = unserialize($datastore['utt_store_act']);

// Make a list of the all the actions...
foreach ($storeactions as $actionid => $theaction) {
	if ($theaction['active'] == "1") {
		$allowed = explode(",", $theaction['allowedgroups']);
		foreach ($allowed as $allow) {
			if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $allow)) {
				$canenter = "1";
			}
		}
		$denied = explode(",", $theaction['deniedgroups']);
		foreach ($denied as $deny) {
			if (is_member_of(array('userid'=>$bbuserinfo['userid'], 'usergroupid'=>$bbuserinfo['usergroupid'], 'membergroupids'=>$bbuserinfo['membergroupids']), $deny)) {
				unset($canenter);
			}
		}
		if (!isset($canenter)) {
			$canenter = "0";
		}
		if (THIS_SCRIPT == 'ushop') {
			if ($canenter == 1) {
				$action1[$actionid] = $theaction;
			}
			if ($theaction['showinstore'] == 1) {
				(isset($actioncount) ? $actioncount++ : $actioncount = "1");
			}
		}
		if ($canenter == 1 && $theaction['showinstore'] == 1) {
			eval('$ushop_navbar .= "' . fetch_template('navbar_uttstore_actions') . '";');
		}
	}
}
// The end all solution.
unset($theaction);
unset($storeactions);
if (THIS_SCRIPT == 'ushop') {
	$storeactions = $action1;
}
unset($action1);
// ## </ucs>
if (DB_QUERIES)
{
	$pageendtime = microtime();
	$starttime = explode(' ', $pagestarttime);
	$endtime = explode(' ', $pageendtime);
	$aftertime = $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
	echo "End call of global.php:  $aftertime\n";
	echo "\n<hr />\n\n";
}
Error: Warning: Invalid argument supplied for foreach() in /global.php on line 682
Did you run the installer. or use dreamweaver ? (matts going to bash me but ffs its the biggest error made)
Reply With Quote
  #7  
Old 02-23-2005, 12:58 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't use dreamweaver and I haven't ran the installer yet; I thought you did that after the modifications to the templates and files. Did I read the instructions wrong?
Reply With Quote
  #8  
Old 02-23-2005, 01:02 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Punktek.com
I didn't use dreamweaver and I haven't ran the installer yet; I thought you did that after the modifications to the templates and files. Did I read the instructions wrong?
Hm, suppose we should change that, but yes, run the installer now, you are going to need to inorder for everything to function right.
Reply With Quote
  #9  
Old 02-23-2005, 01:04 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would suggest running the installer now...
Reply With Quote
  #10  
Old 02-23-2005, 07:38 PM
TruthElixirX's Avatar
TruthElixirX TruthElixirX is offline
 
Join Date: Sep 2004
Location: Oklahoma
Posts: 517
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hahahaha. Nice. *feels stupid*. Thanks guys.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04495 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete