Forums / Developer / url problem (index.php?)

url problem (index.php?)

Author Message

zaxofeel .v

Thursday 15 March 2007 7:51:38 am

hi all
I've a problem here and looking for your help as usual,
I've installed ezPublish 3.8.6 on a shared hosting, well.. everything went allright and no problems until I noticed when testing the installation that the search module is not working
I noticed that my site url looks like this
http://Domain.com/site/index.php?/siteaccess/news
when using the searchbox, it goes to this url
http://Domain.com/site/index.php?SearchText=scds
and the error is module not found.
I guess the problem here is the (?)
if you think it is, can someone suggest a solution?
p.s: I don't have shell access to the server, it is a shared hosting.
Thanks

Sònia Sánchez

Thursday 15 March 2007 9:09:37 am

Hi!

I'm novice on eZ Publish and I have the same problem!
I also think that the problem comes from the "?"
Somebody knows how we can delete the "?" of the URL?

I'm using the same version that zaxofeel .v, the 3.8.6.

Thanks a lot!

Sònia Sánchez

Thursday 15 March 2007 10:36:45 am

Hi!

I was investigating and the question mark is because eZ publish found that PHP works in CGI mode, and put it there.

I solved the module not found error changing method from GET to POST in search form.
But now I can't give the search_text variable value with:

{def $search_text=ezhttp('search_text')}

Someones knows why? And how can I solve it?

Thanks!

Sònia Sánchez

Thursday 15 March 2007 11:10:32 am

Finaly I solved the search problem!

This is my form code:

<form action={"/resultados_buscador"|ezurl()} method="post" name="buscador" id="buscador" enctype="multipart/form-data">
   <input type="text" name="serach_text" id="search_text"/>
   <input type="submit" name="envia" id="envia" value="Go"/>
</form>

This get the post variable value:

{def $search_text=ezhttp('serach_text','post')}

This serach the results:

{def $search=fetch(content,search,hash(text,$search_text))}

And this show all founded results:

{foreach $search['SearchResult'] as $item}
   <a href={concat( "/", $item.url_alias )|ezurl()}>{attribute_view_gui attribute=$item.object.data_map.name}</a>
{/foreach}

I hope that it help to you! ^^

zaxofeel .v

Friday 16 March 2007 5:07:36 am

That's a great effort from you, thanks :)
I can see that you've used a custom search page, actually I tried it but it didn't work with me, I can't figure out where is my problem
but can you modify the code to use the default search results page?
i really need to use the default search and advanced search pages.

Michael Kress

Saturday 17 March 2007 7:54:43 am

Hi, is it also possible to remove the index.php in the url?
something like http://hostname/abcdef instead of http://hostname/index.php/sitename/abcdef
Regards
Michael

André R.

Saturday 17 March 2007 9:25:45 am

Regarding hiding index.php:
http://ez.no/doc/ez_publish/technical_manual/3_8/installation/virtual_host_setup
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/siteaccesssettings/forcevirtualhost

Search in this forum for index.php and virual host gets a lot of hits, some:
http://ez.no/community/forum/install_configuration/getting_rid_of_index_php/re_getting_rid_of_index_php
http://ez.no/community/forum/install_configuration/virtual_host_setup

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Michael Kress

Saturday 17 March 2007 5:35:24 pm

Hi! I tried it - it works perfectly. Thanks for the links.
Michael

zaxofeel .v

Wednesday 21 March 2007 8:26:40 am

well, after more than a week of trying to solve the problem,
my shared hosting provider surprised me that they don't support virtual host mode !!!
and now I am stuck with this problem !!
please all, if anyone has a clue I'll be very grateful. now The project I am working on is about to fail and the customer is asking for the results !!

Björn Dieding@xrow.de

Wednesday 21 March 2007 3:43:13 pm

if you hosting provider doesn't allow you to access mod_rewrite then you are stuck...

find another host that is specialized in ez hosting....

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

eZ debug

Timing: Jan 18 2025 10:30:53
Script start
Timing: Jan 18 2025 10:30:53
Module start 'content'
Timing: Jan 18 2025 10:30:54
Module end 'content'
Timing: Jan 18 2025 10:30:54
Script end

Main resources:

Total runtime1.3509 sec
Peak memory usage4,096.0000 KB
Database Queries221

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.6094180.8438
Module start 'content' 0.00771.1123 768.4531758.1406
Module end 'content' 1.11990.2309 1,526.5938344.4531
Script end 1.3508  1,871.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.3324210.0002
Check MTime0.00160.1203210.0001
Mysql Total
Database connection0.00120.087010.0012
Mysqli_queries1.241191.86962210.0056
Looping result0.00360.26792190.0000
Template Total1.322197.920.6611
Template load0.00210.152920.0010
Template processing1.320197.716120.6600
Template load and register function0.00010.010110.0001
states
state_id_array0.00090.069110.0009
state_identifier_array0.00090.066920.0005
Override
Cache load0.00190.1415770.0000
Sytem overhead
Fetch class attribute can translate value0.00130.097960.0002
Fetch class attribute name0.00180.1320140.0001
XML
Image XML parsing0.00460.338660.0008
class_abstraction
Instantiating content class attribute0.00000.0024180.0000
General
dbfile0.00600.4405460.0001
String conversion0.00000.001930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 52
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs