Webmastersite.net
Register Log In

5.1 Betas

Comments on 5.1 Betas

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#16 - Quote - Permalink
Posted Jul 22, 2009 - 12:33 PM:



jayweb wrote:
Ok, so here is the problem...



I use the folowing unique toplist in my wrapper as naigation. I obviously have a custom category field called onmainmenu




<!-- BEGIN TOPLIST 4 -->
<CONFIG>categories[,]name[,]20[,]ascending[,]onmainmenu="1"[,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,]0</CONFIG>
<ul>
<li>{CATNAME}</li>
</ul>
<!-- END TOPLIST 4 -->





When the above topist is used in the wrapper, all but the home page give the following error. (Taken from the source code)



<p>Couldn't find <!-- BEGIN TOPLIST 4 --> and <!-- END TOPLIST 4 --> in template!</p>


Yep - I confirm that when I remove my toplist from the wrapper I don't get that error message either.  My toplist is...


 



<!-- BEGIN TOPLIST -->

<CONFIG>categories[,]priority;name[,]15[,]ascending[,]parent='0'[,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,]0</CONFIG>

<li><a href="{CATURL}" title="{CATNAME}">{CATNAME}</a></li>



<!-- END TOPLIST -->


webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
#17 - Quote - Permalink
Posted Jul 23, 2009 - 6:10 AM:

Also, in 5.1 I am tring to run the following PHP in a template...


<?php
include('http://www.awin1.com/wshow.php?inc=1&s=160122');
?>


but get the following error...


An error occoured at http://www.moreinstore.co.uk/index.php on 2009-07-23 13:06:32. Please relay this data to support. Error #2: 'include() [function.include]: URL file-access is disabled in the server configuration' in /home/more211/public_html/includes/commonfuncs.php(1200) : eval()'d code on line 85.

Step 1 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php(1200) : eval()'d code
Line: 85
Function: include

Step 2 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php
Line: 1200
Function: eval

Step 3 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php
Line: 1590
Function: buffereval
Arguments:

Step 4 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php
Line: 1226
Function: finaloutput
Arguments:

Step 5 of backtrace:
File: /home/more211/public_html/end.php
Line: 527
Function: OutputPhpDocument
Arguments:

Step 6 of backtrace:
File: /home/more211/public_html/index.php
Line: 224
Function: require
Arguments: /home/more211/public_html/end.php

An error occoured at http://www.moreinstore.co.uk/index.php on 2009-07-23 13:06:32. Please relay this data to support. Error #2: 'include(http://www.awin1.com/wshow.php?inc=1&s=160122) [function.include]: failed to open stream: no suitable wrapper could be found' in /home/more211/public_html/includes/commonfuncs.php(1200) : eval()'d code on line 85.

Step 1 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php(1200) : eval()'d code
Line: 85
Function: include

Step 2 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php
Line: 1200
Function: eval

Step 3 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php
Line: 1590
Function: buffereval
Arguments:

Step 4 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php
Line: 1226
Function: finaloutput
Arguments:

Step 5 of backtrace:
File: /home/more211/public_html/end.php
Line: 527
Function: OutputPhpDocument
Arguments:

Step 6 of backtrace:
File: /home/more211/public_html/index.php
Line: 224
Function: require
Arguments: /home/more211/public_html/end.php

An error occoured at http://www.moreinstore.co.uk/index.php on 2009-07-23 13:06:32. Please relay this data to support. Error #2: 'include() [function.include]: Failed opening 'http://www.awin1.com/wshow.php?inc=1&s=160122' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php')' in /home/more211/public_html/includes/commonfuncs.php(1200) : eval()'d code on line 85.

Step 1 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php(1200) : eval()'d code
Line: 85
Function: include

Step 2 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php
Line: 1200
Function: eval

Step 3 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php
Line: 1590
Function: buffereval
Arguments:

Step 4 of backtrace:
File: /home/more211/public_html/includes/commonfuncs.php
Line: 1226
Function: finaloutput
Arguments:

Step 5 of backtrace:
File: /home/more211/public_html/end.php
Line: 527
Function: OutputPhpDocument
Arguments:

Step 6 of backtrace:
File: /home/more211/public_html/index.php
Line: 224
Function: require
Arguments: /home/more211/public_html/end.php
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#18 - Quote - Permalink
Posted Jul 23, 2009 - 8:18 AM:

I didn't know double quotes would work in toplist conditions, they weren't intentionally supported since I've always used single quotes, but I'll check into that.

We already have the special characters to allow in tags tweak, no reason to add another. Type a space there.

Including URLs is considered seriously insecure and disallowed by the vast majority of web hosts.
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
#19 - Quote - Permalink
Posted Jul 23, 2009 - 8:42 AM:

Double quotes have always worked, but that isn't what is causing the error. The error occurs with any category toplist in the wrapper.
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
#20 - Quote - Permalink
Posted Jul 23, 2009 - 8:44 AM:

Ignore the URL include question, I found a workaround.

Though I don't really have a web host, I have my own server. It seems a setting was changed when upgrading from PHP4, and as you say the setting needs to be off to avoid a big security risk.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#21 - Quote - Permalink
Posted Jul 24, 2009 - 3:10 PM:

Double quotes likely present an SQL injection security risk, since WSN's protections are based on always using single quotes.

Fixed the toplist in wrapper issue and the postal code autocomplete issue.
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
#22 - Quote - Permalink
Posted Jul 25, 2009 - 5:35 AM:

That's great Paul, they were the only problems I found. Will there be a Beta 4 soon?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#23 - Quote - Permalink
Posted Jul 25, 2009 - 10:38 AM:

Beta 4 could be tomorrow or anytime through next weekend depending on how things go.
PurpleCow
Internet Evangelist

Usergroup: Customer
Joined: Oct 18, 2003

Total Topics: 43
Total Comments: 103
#24 - Quote - Permalink
Posted Jul 26, 2009 - 7:30 AM:

How many betas before a stable 5.1 is out?


Thanks

webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
#25 - Quote - Permalink
Posted Jul 26, 2009 - 9:14 AM:

I would imagine that would depend on how many bugs are found in beta. I wouldn't think it will be very long though because it seems quite stable to me.
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
#26 - Quote - Permalink
Posted Jul 26, 2009 - 10:07 AM:

Just found an error on the System Configuration page in the 5.1 admin panel, at the bottom of the page...


Fatal error: Call to undefined function suhosin_function_exists() in /home/hello211/public_html/testing/includes/commonfuncs.php( 1200) : eval()'d code on line 121
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#27 - Quote - Permalink
Posted Jul 27, 2009 - 9:58 AM:

OK, this version is a whole new learning curve!  Looks great though!


I went to add some new link types and I can't find where it is!!   I have link types selected in switches, go to settings > links where it used to be and it's not there!


Has it been moved or is this a bug?


Jill

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#28 - Quote - Permalink
Posted Jul 27, 2009 - 10:15 AM:

Link types are now done through the type manager. Admin -> Settings -> Type Manager.

Last I checked, the type manager was annoyingly not respecting the link bit and moving everything into the other templates... meaning to look at that again.

jayweb wrote:
Just found an error on the System Configuration page in the 5.1 admin panel, at the bottom of the page...

Fatal error: Call to undefined function suhosin_function_exists() in /home/hello211/public_html/testing/includes/commonfuncs.php( 1200) : eval()'d code on line 121


You must have an old template, because searching all files beneath the directory for "suhosin_function_exists" turns up no results.

PurpleCow wrote:
How many betas before a stable 5.1 is out?


Whenever it's ready. The number of betas will depend on how often I feel it's useful to release a new set of patches/features for testing.

There's still considerable work to do, but August or September is likely for the .0 release.



Could someone on Windows check if the IE 6 png fix I've included works -- that is, are transparent png files looking ok? It doesn't work via Wine, but I've read that could be a Wine bug.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#29 - Quote - Permalink
Posted Jul 28, 2009 - 11:56 PM:

I used to have a linkbit for each different link type and had to of course then adjust all the files that used linkbit.  So it is great that I can just add the different layouts to the new type manager and not have to worry about remembering to alter all the other files is great!


 

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#30 - Quote - Permalink
Posted Jul 30, 2009 - 12:10 AM:

Added a link and put it into two secondary categories. It is duplicated in the secondary categories.


Site is offline at the moment, please let me know if you require access to it.


Cheers

Jill


 

Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.