Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (mmkk), 65 guests, and 419 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Morgan
Morgan
Sweden
Posts: 518
Joined: June 2006
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 14
FREAK 11
M4TT 8
mmkk 5
isaac 4
Ruben 3
Latest Photos
Chinese Buddhist temple.
My buddha beads.
Rendered Walls
Multi-Screen wallpaper
Stockholm Metro
Previous Thread
Next Thread
Print Thread
Undefined variable on External Post Island [7.6.0] #259787
03/12/17 05:50 AM
03/12/17 05:50 AM
Joined: Jan 2010
Posts: 7
E
E T P Offline OP
stranger
E T P  Offline OP
stranger
E
Joined: Jan 2010
Posts: 7
After upgrading to 7.6.0, my external post island (aka post_island_11.php) is getting the following error, when display externally on another php file.

Notice: Undefined variable: config in C:\Web\etplanet\forums\languages\english\generic.php on line 117

Notice: Undefined variable: config in C:\Web\etplanet\forums\languages\english\generic.php on line 186

Last edited by E T P; 03/12/17 08:11 AM. Reason: [ Already Fix ]
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Undefined variable on External Post Island [7.6.0] [Re: E T P] #259788
03/12/17 07:25 AM
03/12/17 07:25 AM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
Have you tried to recreate your external post island again?
Have you updated the files in the cache_builders/ directory to your server? (cache_builders/ ONLY. not cache_builders/custom/)
Have you cleared your forum cache since your upgrade?


If neither of those work for you, here are some further troubleshooting ideas:

A) Make a backup of the file languages\english\generic.php which is already on your server, and then placing a fresh copy of it from your ubbthreads-7-6-0.zip archive in to that folder.

B) If you manually updated your language files by hand:
Double check those two listed line numbers in your language file to confirm that they are formatted correctly -- like the other lines in that file.

C) If you allowed the upgrader to automatically update your language files:
Those two line numbers will be unique to your language files. You can zip up that file and attach it here. Then someone can view it and locate exactly what the problem is caused by.

Ultimately though, since you are using a custom external post island, you might want to open that island up and see if there are any conflicting items within it.

---

Though, someone else may come along with further ideas. These are what I have as right now.

Re: Undefined variable on External Post Island [7.6.0] [Re: isaac] #259789
03/12/17 08:02 AM
03/12/17 08:02 AM
Joined: Jan 2010
Posts: 7
E
E T P Offline OP
stranger
E T P  Offline OP
stranger
E
Joined: Jan 2010
Posts: 7
Have you tried to recreate your external post island again?
-Moving to post_island_12.php creates the same error.

Have you updated the files in the cache_builders/ directory to your server? (cache_builders/ ONLY. not cache_builders/custom/)
-Yes, have reupload again. Same error.

Have you cleared your forum cache since your upgrade?
-Yes, also have re-cleared. Same error.

A--> Have already tried that, but forgot to backup before uploading.

B--> Not apply

C--> I have allowed the upgrader to update the file automatically.

Would uploading 7.5.9 generic.php helps? Since I did backup before upgrading. But did not do it before re-uploading that file.

Btw, it does post all the topic/message, just that the error appears at the beginning.
When posted, it is above the "Name" of the post island.

"Notice: Undefined variable: config in C:\Web\etplanet\forums\languages\english\generic.php on line 117
Notice: Undefined variable: config in C:\Web\etplanet\forums\languages\english\generic.php on line 186
Latest Post" <-- my name of the post island

Note: I was upgrading from 7.5.9 to 7.6.0

Also, the post island is there to show recent post. No other codes are added/used.

Re: Undefined variable on External Post Island [7.6.0] [Re: E T P] #259790
03/12/17 08:10 AM
03/12/17 08:10 AM
Joined: Jan 2010
Posts: 7
E
E T P Offline OP
stranger
E T P  Offline OP
stranger
E
Joined: Jan 2010
Posts: 7
I think I have fixed it myself.

Control Panel -> Language -> "Search / Edit Language Strings" tab -> select generic.php and search.
Do nothing on this page, just click "Update Language File" button near the bottom of this page.

Error disappear. Thanks for helping.

Re: Undefined variable on External Post Island [7.6.0] [Re: E T P] #259791
03/12/17 08:18 AM
03/12/17 08:18 AM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
Originally Posted by E T P
I think I have fixed it myself.

...

Error disappear. Thanks for helping.


You're welcome

The solution is a strange one. I'm glad that you got it taken care of.

I was impressed with how many different ways you attempted to solve the issue before posting for additional ideas. I was also impressed that you replied back in such detail. Yours was a good read and a good post! Thank you

Re: Undefined variable on External Post Island [7.6.0] [Re: E T P] #259792
03/12/17 08:25 AM
03/12/17 08:25 AM
Joined: Jan 2010
Posts: 7
E
E T P Offline OP
stranger
E T P  Offline OP
stranger
E
Joined: Jan 2010
Posts: 7
Using an online website to check the difference between the two files.

Compare original 7.6.0 (from zip) with the updated 7.6.0 (that I did nothing)

All of those lines that start with "//" are removed.
--> line 73/74/104/105 are now blank

Problem in line 117:
original: $ubbt_lang['UNDERAGE'] = "Sorry, you must be {$config['MINIMUM_AGE']} or older to post.";

new: $ubbt_lang['UNDERAGE'] = "Sorry, you must be or older to post.";


Problem in line 186:
original: $ubbt_lang['NO_PROCEED3'] = "Return to the <a href=\"javascript:history.go(-1)\" class=\"bold\">previous page</a> or use <a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=search\" style=\"font-weight:bold;\">search</a> if you are looking for something specific.";

new:
$ubbt_lang['NO_PROCEED3'] = "Return to the <a href=\"javascript:history.go(-1)\" class=\"bold\">previous page</a> or use <a href=\"/ubbthreads.php?ubb=search\" style=\"font-weight:bold;\">search</a> if you are looking for something specific.";


Maybe this is a bug? Anyways, thanks again.

Re: Undefined variable on External Post Island [7.6.0] [Re: E T P] #259793
03/12/17 08:42 AM
03/12/17 08:42 AM
Joined: Apr 2004
Posts: 1,004
California
isaac Offline
UBB.threads Developer
isaac  Offline
UBB.threads Developer
Joined: Apr 2004
Posts: 1,004
California
lines that begin with "//" are comment lines. Blank lines and comment lines are used to add readability to the code but are not required for it to execute.

{$config['MINIMUM_AGE']} and {$config['BASE_URL']} are variable strings which the base php software populates with data from your forum configuration.

{$config['MINIMUM_AGE']} -- is taken from Control Panel > Registration Settings | Age Verification > Minimum Age Required
When you enable the Age Verification feature, it will display a notice to them of why they are not allowed to create an account. For example, If your forum has content on it which would not be appropriate for persons under a certain age, or if you only wanted to allow people over a certain age to register -- such as a dating site.

{$config['BASE_URL']} - is taken from Control Panel > DB, Paths & URLs | Paths & URLs > Relative URL to Main Directory
This variable is used for the relitive url on your websites main directory path. Some websites set use "/" and install their UBB.threads in the root of thier domain. Some websites place each of their scripts in to directories which make sense for categories, such as /forums or /threads or even /ubbthreads. And finally, Some websites prefer to use absolute paths. So they would enter their entire url ( http://www.EXAMPLE.com/forums ) in that box -- Duplicating "Full URL to Main Directory " within the "Relative URL to Main Directory" entry box.

Re: Undefined variable on External Post Island [7.6.0] [Re: isaac] #259795
03/12/17 10:26 AM
03/12/17 10:26 AM
Joined: Feb 2007
Posts: 1,318
Pennsylvania
JAISP Offline
veteran
JAISP  Offline
veteran
Joined: Feb 2007
Posts: 1,318
Pennsylvania
I had a very similar issue when I did my upgrade and when I went into the language editor and was scrolling down I kind of got an OCD moment and changed the wording on something and then saved it.

After doing this I went back to try and find what my problem was and I no longer had a problem. What you explained here answered why my problem went away all of a sudden.


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Shout Box Sound Effect
by M4TT. 11/29/17 08:28 PM
Ad island
by TGCsanderson. 11/25/17 06:41 PM
Taking to long to connect to DB
by AstroCat. 11/24/17 12:34 PM
I want to update forum but can't find license
by dimaninc. 11/23/17 10:51 AM
Thumbs Up/Rate Individual Posts
by M4TT. 11/22/17 01:11 PM
Forum Statistics
Forums36
Topics35,013
Posts190,528
Members12,045
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.1
(Snapshot build 20171106)