Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign in to follow this  
rinon

Contrib Installer

Recommended Posts

I also get the response during install....

 

PHP runtime messages:

 

Done.

1064 - You have an error in your SQL syntax near '; ' at line 7

 

CREATE TABLE IF NOT EXISTS `contrib_installer` ( `ID` int(4) NOT NULL auto_increment PRIMARY KEY, `line_number` int(5) unsigned default NULL, `file` varchar(255) default NULL, `contrib_name` varchar(255) default NULL );

[CONTRIB INSTALLER TEP STOP].

 

 

Seems like there is more than one of us with this problem. Is this a problem with this contrib or is there a conflict that's not being recognized?

Share this post


Link to post
Share on other sites
PHP runtime messages:

Done.

1064 - You have an error in your SQL syntax near '; ' at line 7

 

Hi!

This is an error with sql-statment.

What is your version of MySQL?

Is Contrib Installer version latest (1.0.15)?


===============================

Never give up! Never give up! Never give up!

Share this post


Link to post
Share on other sites
Hi!

This is an error with sql-statment.

What is your version of MySQL?

Is Contrib Installer version latest (1.0.15)?

 

 

Running MySQL 3.23.56 as well as Contrib_Installer_1.0.15.

Share this post


Link to post
Share on other sites
Running MySQL 3.23.56 as well as Contrib_Installer_1.0.15.

Try new version of MySQL if it's posible or

read about query syntax in your version of MySQL (http://www.mysql.com).

Sorry but my native language is not english and reading take time.

:blush:

This code works fine in MySQL 4.0.17 (tested) and above.

 

When you find a difference in sql-query syntax than I can tell you where you should do changes


===============================

Never give up! Never give up! Never give up!

Share this post


Link to post
Share on other sites
Guest

This is the coolest system, i tried installing Contrib_Installer_1.0.15 but i cant seem to install it as everytime i do i get the error message:

----------------

Checking conflicts:findreplace #2

There is a conflict in file: admin/includes/boxes/tools.phpOn line 21

start: 21

end: 21

 

[r][n]

'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'));[r][n]

 

 

 

This error message means that CIP (Contrib Installer Package) that you are installing tryes to change lines in file that was changed by another CIP before.

If file was changed by hand you will see a message that says "Can't find...".

 

What to do?

---------------

How do i fix this as it is a fresh install. I try remove option but it gives me a page cannot be displayed issue. please help someone or direct me to a thread related to this

Share this post


Link to post
Share on other sites

 Checking conflicts:findreplace #2
There is a conflict in file: admin/includes/boxes/tools.phpOn line 21
start: 21
end: 21

[r][n]
'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'));[r][n]

This error message means that CIP (Contrib Installer Package) that you are installing tryes to change lines in file that was changed by another CIP before.
If file was changed by hand you will see a message that says "Can't find...".

 

This is a conflict. Contrib Installer can't find this string

'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'));[r][n]

in

admin/includes/boxes/tools.php

 

Check manually if this file contain this string.

If this string exists -

try to remove linebreakes ([r][n]) before this string in

/admin/contributions/Contrib_Installer_1.0.15/install.xml

Or if this string (at line 21) was modified change it in install.xml.

Than try to install again.

 

God bless you.


===============================

Never give up! Never give up! Never give up!

Share this post


Link to post
Share on other sites

i have just installed the all product contrib, no errors but the link does not appear in the catagories are you sure this bit of code is correct i downloaded the full version. without the installer.

 

 

"and /catalog/includes/languages/(language)/all_products.php to your /catalog/includes/(language)/all_products.php"

in that file this is all it contains

 

 

define('NAVBAR_TITLE', 'All Products');

define('HEADING_TITLE', 'All Products');

 

should this not be inserted into another file

 

RT :-"

Edited by artpics

Share this post


Link to post
Share on other sites
Guest
 Checking conflicts:findreplace #2
There is a conflict in file: admin/includes/boxes/tools.phpOn line 21
start: 21
end: 21

[r][n]
'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'));[r][n]

This error message means that CIP (Contrib Installer Package) that you are installing tryes to change lines in file that was changed by another CIP before.
If file was changed by hand you will see a message that says "Can't find...".

 

This is a conflict. Contrib Installer can't find this string

'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'));[r][n]

in

admin/includes/boxes/tools.php

 

Check manually if this file contain this string.

If this string exists -

try to remove linebreakes ([r][n]) before this string in

/admin/contributions/Contrib_Installer_1.0.15/install.xml

Or if this string (at line 21) was modified change it in install.xml.

Than try to install again.

 

God bless you.

 

 

Thanks this worked i got the page saying installed, i clicked back and contribinstaller is on my menu on the left but it seems when i click the contrib installer inder tools it gives me a 404 page cannot be found error with "http://adbmarketing.org/catalog/admin/FILENAME_CONTRIB_INSTALLER" in the address line. i noticed while working with other contributions they refer to using a file called "/catalog/admin/includes/filenames.php" but mine somehow recognises the "/catalog/admin/includes/application_top.php" instead. is this correct? Do i take the changes contrib installer makes to "filenames.php" and manually add it to "application_top.php"?

Share this post


Link to post
Share on other sites
Guest
Do i take the changes contrib installer makes to "filenames.php" and manually add it to "application_top.php"?

|

|

V

I tried this and it still gives me a 404 page cannot be found

Share this post


Link to post
Share on other sites

About filenames.

in install.xml we have:

  <addcode>
<file name="admin/includes/filenames.php"/>
<findlinenumbers start="10" end="11"/>
<find><![CDATA[Released under the GNU General Public License
*/]]></find>
<add type="php"><![CDATA[
define('FILENAME_CONTRIB_INSTALLER', 'contrib_installer.php');
]]></add>
 </addcode>

 

so we use filenames.php to store filenames.

Try to remove and than install again Contrib Installer.

When you uninstall - this removes all changes and may be bugs.

Than do a clean install with changes you have made in install.xml.


===============================

Never give up! Never give up! Never give up!

Share this post


Link to post
Share on other sites

Regarding the file permissions:

Is there some kind of way to change all files to 777 before installing CI and CIPs and when you're done installing modules then change the file permissions back to the original rights?

Share this post


Link to post
Share on other sites
Guest
Uploaded Contrib Installer 1.0.15

 

Changes since 1.0.14a:

- Added in addcode_xml_check()

($t_array[$loop_index]['FINDLINENUMBERS'][0]['@']['TYPE'] != 'continued' or

$t_array[$loop_index]['FINDLINENUMBERS'][0]['@']['TYPE'] != 'new'))

So we can use both type="new" and type="continued".

 

- Fixed bug. When register_globals is Off Contrib Installer losts the contrib name at the installation time.

Now the contrib name is a function parameter for each function in this files:

conflicts_check.php

permissions_check.php

xml_check.php

tag_actions.php (here is a function call)

 

Great stuff.....! this has resolved the "//" issue. I have a further problem trying to install admin access 2.1.1-2. It only displays this message then nothing else happens. I can install admin access manually but then this breaks contrib_installer.. hellp please

 

********************************************************************************

*********************

Contrib Installer

Installing Contribution: Admin_Access-2.1.1-2

From install file: /home/e-sales/netxonline.co.uk/user/htdocs/catalog/admin/contributions/Admin_Access-2.1.1-2/install.xml

Author:

By Robert Hellemans

Updated by MaxiDVD for MS2

Updated by Rinon for PHP5

Comments:

Checking config file:

No remove query necessary for SQL query:

 

INSERT INTO admin VALUES (1, 1, 'AdminFirstname', 'AdminLastname', 'admin@localhost', '351683ea4e19efe34874b501fdbf9792:9b', now(), '0000-00-00 00:00:00', null, 0)

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (1, 'administrator.php', 1, 0, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (2, 'configuration.php', 1, 0, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (3, 'catalog.php', 1, 0, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (4, 'modules.php', 1, 0, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (5, 'customers.php', 1, 0, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (6, 'taxes.php', 1, 0, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (7, 'localization.php', 1, 0, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (8, 'reports.php', 1, 0, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (9, 'tools.php', 1, 0, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (10, 'admin_members.php', 0, 1, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (11, 'admin_files.php', 0, 1, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (12, 'configuration.php', 0, 2, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (13, 'categories.php', 0, 3, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (14, 'products_attributes.php', 0, 3, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (15, 'manufacturers.php', 0, 3, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (16, 'reviews.php', 0, 3, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (17, 'specials.php', 0, 3, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (18, 'products_expected.php', 0, 3, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (19, 'modules.php', 0, 4, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (20, 'customers.php', 0, 5, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (21, 'orders.php', 0, 5, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (22, 'countries.php', 0, 6, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (23, 'zones.php', 0, 6, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (24, 'geo_zones.php', 0, 6, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (25, 'tax_classes.php', 0, 6, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (26, 'tax_rates.php', 0, 6, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (27, 'currencies.php', 0, 7, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (28, 'languages.php', 0, 7, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (29, 'orders_status.php', 0, 7, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (30, 'stats_products_viewed.php', 0, 8, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (31, 'stats_products_purchased.php', 0, 8, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (32, 'stats_customers.php', 0, 8, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (33, 'backup.php', 0, 9, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (34, 'banner_manager.php', 0, 9, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (35, 'cache.php', 0, 9, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (36, 'define_language.php', 0, 9, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (37, 'file_manager.php', 0, 9, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (38, 'mail.php', 0, 9, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (39, 'newsletters.php', 0, 9, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (40, 'server_info.php', 0, 9, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (41, 'whos_online.php', 0, 9, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (42, 'banner_statistics.php', 0, 9, '1,18')

No remove query necessary for SQL query:

 

INSERT INTO admin_files VALUES (43, 'contrib_installer.php', 0, 9, '1')

No remove query necessary for SQL query:

 

INSERT INTO admin_groups VALUES (1, 'Top Administrator')

No remove query necessary for SQL query:

 

INSERT INTO admin_groups VALUES (2, 'Marketing')

Share this post


Link to post
Share on other sites
No remove query necessary for SQL query:

Do you read post above? We discuss this problem.

In short:

1. Add remove_query tag content:

<remove_query>SELECT 1;</remove_query>


===============================

Never give up! Never give up! Never give up!

Share this post


Link to post
Share on other sites
Guest
Do you read post above? We discuss this problem.

In short:

1. Add remove_query tag content:

<remove_query>SELECT 1;</remove_query>

 

Hey vlad, sorry i don't understand. Are you saying I should change the code before installing?

Any case I have just finished a manual install of Admin Access 22a, http://www.oscommerce.com/community/contri.../download,11962 following the instructions 22a-README.txt for previously altered oscommerce but I would like to know for the future incase I ever need to do it again.

 

Having installed the above I have blank amin pages after the login and the problem seems to be a conflict with contrib_installer's changes to /admin/includes/tools.php. Have you come across this or can you help?

 

:-"

Share this post


Link to post
Share on other sites
Guest
Hey vlad, sorry i don't understand. Are you saying I should change the code before installing?

Any case I have just finished a manual install of Admin Access 22a, http://www.oscommerce.com/community/contri.../download,11962 following the instructions 22a-README.txt for previously altered oscommerce but I would like to know for the future incase I ever need to do it again.

 

Having installed the above I have blank amin pages after the login and the problem seems to be a conflict with contrib_installer's changes to /admin/includes/tools.php. Have you come across this or can you help?

 

:-"

The problem is that contrib_installer has already made changes:

 

/*  Begin Contrib_Installer_1.0.15 - installed by Contrib_Installer */
'link'  => tep_href_link(FILENAME_CONTRIB_INSTALLER, 'selected_box=tools'));
/*  End Contrib_Installer_1.0.15 - installed by Contrib_Installer */

 if ($selected_box == 'tools') {
$contents[] = array('text'  =>
/*  Begin Contrib_Installer_1.0.15 - installed by Contrib_Installer */
							   '<a href="' . tep_href_link(FILENAME_CONTRIB_INSTALLER) . '" class="menuBoxContentLink">' . BOX_CONTRIB_INSTALLER . '</a><br>' .
/*  End Contrib_Installer_1.0.15 - installed by Contrib_Installer */
'<a href="' . tep_href_link(FILENAME_BACKUP) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_BANNER_MANAGER . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_CACHE) . '" class="menuBoxContentLink">' . BOX_TOOLS_CACHE . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_MAIL) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_NEWSLETTERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_SERVER_INFO) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' .
							   '<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>');

 

So I'm stuck following the instructions below:

 

FILE NAME: catalog/admin/includes/boxes/tools.php (1 edit)

 

FIND on or about line 24

 

$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_BACKUP) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_BANNER_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_BANNER_MANAGER . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CACHE) . '" class="menuBoxContentLink">' . BOX_TOOLS_CACHE . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_MAIL) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_NEWSLETTERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_SERVER_INFO) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>');

 

REPLACE WITH

 

// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1

// reverse comments to below lines to disable this contribution

// $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_BACKUP) . '" class="menuBoxContentLink">' . BOX_TOOLS_BACKUP . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_BANNER_MANAGER . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_CACHE) . '" class="menuBoxContentLink">' . BOX_TOOLS_CACHE . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_DEFINE_LANGUAGE) . '" class="menuBoxContentLink">' . BOX_TOOLS_DEFINE_LANGUAGE . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_FILE_MANAGER) . '" class="menuBoxContentLink">' . BOX_TOOLS_FILE_MANAGER . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_MAIL) . '" class="menuBoxContentLink">' . BOX_TOOLS_MAIL . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_NEWSLETTERS) . '" class="menuBoxContentLink">' . BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_SERVER_INFO) . '" class="menuBoxContentLink">' . BOX_TOOLS_SERVER_INFO . '</a><br>' .

// '<a href="' . tep_href_link(FILENAME_WHOS_ONLINE) . '" class="menuBoxContentLink">' . BOX_TOOLS_WHOS_ONLINE . '</a>');

$contents[] = array('text' => tep_admin_files_boxes(FILENAME_BACKUP, BOX_TOOLS_BACKUP) .

tep_admin_files_boxes(FILENAME_BANNER_MANAGER, BOX_TOOLS_BANNER_MANAGER) .

tep_admin_files_boxes(FILENAME_CACHE, BOX_TOOLS_CACHE) .

tep_admin_files_boxes(FILENAME_DEFINE_LANGUAGE, BOX_TOOLS_DEFINE_LANGUAGE) .

tep_admin_files_boxes(FILENAME_FILE_MANAGER, BOX_TOOLS_FILE_MANAGER) .

tep_admin_files_boxes(FILENAME_MAIL, BOX_TOOLS_MAIL) .

tep_admin_files_boxes(FILENAME_NEWSLETTERS, BOX_TOOLS_NEWSLETTER_MANAGER) .

tep_admin_files_boxes(FILENAME_SERVER_INFO, BOX_TOOLS_SERVER_INFO) .

tep_admin_files_boxes(FILENAME_WHOS_ONLINE, BOX_TOOLS_WHOS_ONLINE));

// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1

Share this post


Link to post
Share on other sites
Guest
Do you read post above? We discuss this problem.

In short:

1. Add remove_query tag content:

<remove_query>SELECT 1;</remove_query>

 

I have decide to remove the manual install of Admin Access 22a and try again to install CIP admin access. I searched and changed all the

<remove_query></remove_query>

and replaced with

<remove_query>SELECT 1;</remove_query>

 

but now I get this error.

 

Contrib Installer

Installing Contribution: Admin_Access-2.1.1-2

From install file: /home/e-sales/netxonline.co.uk/user/htdocs/catalog/admin/contributions/Admin_Access-2.1.1-2/install.xml

Author:

By Robert Hellemans

Updated by MaxiDVD for MS2

Updated by Rinon for PHP5

Comments:

Checking config file:

File install.xml is valid.

 

Checking permissions:

Permissions is OK.

 

Checking conflicts:

Not original text in find-section. Have been found 6 times!!!

(findreplace #4) in the file: /home/e-sales/netxonline.co.uk/user/htdocs/catalog/admin/includes/boxes/catalog.php[/color

[/indent]'<a href="' . tep_href_link(

 

.;

Share this post


Link to post
Share on other sites
and what directory you specified ? does you install "contrib installer" with it self?

 

No, I tried installing it following the instructions.

Share this post


Link to post
Share on other sites
Guest
I have decide to remove the manual install of Admin Access 22a and try again to install CIP admin access. I searched and changed all the

<remove_query></remove_query>

and replaced with

<remove_query>SELECT 1;</remove_query>

 

but now I get this error.

 

Contrib Installer

Installing Contribution: Admin_Access-2.1.1-2

From install file: /home/e-sales/netxonline.co.uk/user/htdocs/catalog/admin/contributions/Admin_Access-2.1.1-2/install.xml

Author:

By Robert Hellemans

Updated by MaxiDVD for MS2

Updated by Rinon for PHP5

Comments:

Checking config file:

File install.xml is valid.

 

Checking permissions:

Permissions is OK.

 

Checking conflicts:

Not original text in find-section. Have been found 6 times!!!

(findreplace #4) in the file: /home/e-sales/netxonline.co.uk/user/htdocs/catalog/admin/includes/boxes/catalog.php[/color

[/indent]'<a href="' . tep_href_link(

 

.;

 

 

Has anyone any ideas? please......

Share this post


Link to post
Share on other sites
Guest

What contribs is this able to install?

Share this post


Link to post
Share on other sites
Not original text in find-section. Have been found 6 times!!!

This means:

string that must be replaced found not just one time.

you know in Contrib Installer now don't used line numbers to found string.

I will fix it soon. This is a mistake.


===============================

Never give up! Never give up! Never give up!

Share this post


Link to post
Share on other sites
Guest
This means:

string that must be replaced found not just one time.

you know in Contrib Installer now don't used line numbers to found string.

I will fix it soon. This is a mistake.

Thanks for replying Vlad. Is there a temporary fix to resolve my issue or do I have to install Admin Access Level manually for now. If so, then this will be hard when it comes to the edits for "html_output.php" The Contrib_Installer entries that are already there make it difficult :(

Share this post


Link to post
Share on other sites
Is there a temporary fix to resolve my issue or do I have to install Admin Access Level manually for now. If so, then this will be hard when it comes to the edits for "html_output.php" The Contrib_Installer entries that are already there make it difficult

 

Ok. You can find this tag by id in install.xml.

Than copy text between <find> and </find>

Open file which name is in <file name="...">

and find copied string in it.

 

Problem is that this code exists in file in more that one place.

Use line numbers from install.xml to find correct piece of code.

Than try to make this piece of code different from other in this file.

 

When you do it copy this text to install.xml and try to install agian.


===============================

Never give up! Never give up! Never give up!

Share this post


Link to post
Share on other sites
Guest
Ok. You can find this tag by id in install.xml.

Than copy text between <find> and </find>

Open file which name is in <file name="...">

and find copied string in it.

 

Problem is that this code exists in file in more that one place.

Use line numbers from install.xml to find correct piece of code.

Than try to make this piece of code different from other in this file.

 

When you do it copy this text to install.xml and try to install agian.

-------------------------------------------------------------------------

 

Vlad

 

Does this look like it might work?

 

Original install.xml section

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA['<a href="' . tep_href_link(]]></find>

<replace><![CDATA[

/* Begin Admin_Access-2.1.1 - installed by contrib_installer */

tep_admin_files_boxes(]]></replace>

<originallinenumbers start="24" end="29" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[, '', 'NONSSL') . '" class="menuBoxContentLink">' . ]]></find>

<replace>, </replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[ . '</a><br>' .]]></find>

<replace><![CDATA[) .

/* End Admin_Access-2.1.1 - installed by contrib_installer */]]></replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[ . '</a>');]]></find>

<replace><![CDATA[));

/* End Admin_Access-2.1.1 - installed by contrib_installer */]]></replace>

 

 

 

Original catalog.php entries

 

$contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_MANUFACTURERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_SPECIALS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>');

}

$box = new box;

echo $box->menuBox($heading, $contents);

?>

 

 

Changed install.xml section

 

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA['<a href=' . tep_href_link0(]]></find>

<replace><![CDATA[

/* Begin Admin_Access-2.1.1 - installed by contrib_installer */

tep_admin_files_boxes(]]></replace>

<originallinenumbers start="24" end="29" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA['<a href="' . tep_href_link1(]]></find>

<replace><![CDATA[

tep_admin_files_boxes(]]></replace>

<<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA['<a href=' . tep_href_link2(]]></find>

<replace><![CDATA[

tep_admin_files_boxes(]]></replace>

<<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA['<a href=' . tep_href_link3(]]></find>

<replace><![CDATA[

tep_admin_files_boxes(]]></replace>

<<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA['<a href=' . tep_href_link4(]]></find>

<replace><![CDATA[

tep_admin_files_boxes(]]></replace>

<<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA['<a href=' . tep_href_link5(]]></find>

<replace><![CDATA[

tep_admin_files_boxes(]]></replace>

<<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[, '', 'NONSSL0') . '" class="menuBoxContentLink">' . ]]></find>

<replace>, </replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[, '', 'NONSSL1') . '" class="menuBoxContentLink">' . ]]></find>

<replace>, </replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[, '', 'NONSSL2') . '" class="menuBoxContentLink">' . ]]></find>

<replace>, </replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[, '', 'NONSSL3') . '" class="menuBoxContentLink">' . ]]></find>

<replace>, </replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[, '', 'NONSSL4') . '" class="menuBoxContentLink">' . ]]></find>

<replace>, </replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[, '', 'NONSSL5') . '" class="menuBoxContentLink">' . ]]></find>

<replace>, </replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[ . '</a0><br>' .]]></find>

<replace><![CDATA[) .

/* End Admin_Access-2.1.1 - installed by contrib_installer */]]></replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[ . '</a1><br>' .]]></find>

<replace><![CDATA[) .

/* End Admin_Access-2.1.1 - installed by contrib_installer */]]></replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[ . '</a2><br>' .]]></find>

<replace><![CDATA[) .

/* End Admin_Access-2.1.1 - installed by contrib_installer */]]></replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[ . '</a3><br>' .]]></find>

<replace><![CDATA[) .

/* End Admin_Access-2.1.1 - installed by contrib_installer */]]></replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[ . '</a4><br>' .]]></find>

<replace><![CDATA[) .

/* End Admin_Access-2.1.1 - installed by contrib_installer */]]></replace>

<originallinenumbers type="continued" />

</findreplace>

<findreplace>

<file name="admin/includes/boxes/catalog.php" />

<find><![CDATA[ . '</a>');]]></find>

<replace><![CDATA[));

/* End Admin_Access-2.1.1 - installed by contrib_installer */]]></replace>

*** here, may I remove all instances of (/* End Admin_Access-2.1.1 - installed by contrib_installer */]]></replace>) except one at the end?***

 

 

Changed catalog.php section

 

$contents[] = array('text' => '<a href="' . tep_href_link0(FILENAME_CATEGORIES

, '', 'NONSSL0') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a0><br>' .

'<a href="' . tep_href_link1(FILENAME_PRODUCTS_ATTRIBUTES

, '', 'NONSSL1') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES . '</a1><br>' .

'<a href="' . tep_href_link2(FILENAME_MANUFACTURERS

, '', 'NONSSL2') . '" class="menuBoxContentLink">' . BOX_CATALOG_MANUFACTURERS . '</a2><br>' .

'<a href="' . tep_href_link3(FILENAME_REVIEWS

, '', 'NONSSL3') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a3><br>' .

***etc***

class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>');

}

$box = new box;

echo $box->menuBox($heading, $contents);

?>

Share this post


Link to post
Share on other sites
Guest
-------------------------------------------------------------------------

 

Vlad

 

Does this look like it might work?

----snip----

 

hmmm... tried it and got this now

Error in findreplace section #5: no linenumbers start, end or type.

file: admin/includes/boxes/catalog.php

find: '<a href="' . tep_href_link1(replace:

tep_admin_files_boxes(

Edited by bosey

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×